james wrote:
> On Wed, 5 Dec 2012, Chris Green wrote:
>
> > I'd like to do a sort of CTRL-Af} filter on a file as it's fed into vile
> > when I reply to an E-Mail using mutt. This would reformat the long
> > lines that a few systems produce into nicely formatted paragraphs, using
> > the filter above means that the '>' quote markers are preserved.
would this work?
in .vilerc:
store-procedure format-all
format-til goto-end-of-file
~endm
on the command line:
vi -c 'format-all' filename
i don't know how much of the message mutt lets you edit -- if it includes
the headers, you might want the format procedure to search for an empty
line before doing the reformat.
paul
> >
> > Is there any way of doing this when you run vile (i.e. a command line
> > parameter)?
> >
> > --
> > Chris Green
>
> I have been investigating this recently on several console editors. You want
to
> know if there's a linewrap like wordstar's ^B (Joe's editor's jstar for
> example) or Pico's ^J and i don't think there is.
>
> I was trying to find out if there was a vim's Set linebreak equivalent in any
> console editor so that i could use it for text word editing (as opposed to
> progammer's coding). The only alternative was emacs "visual line mode". All
the
> graphical editors do it but not console. My editor of choice would be Joe as i
> used a wordstar editor first years ago and the keybindings are still the most
> efficient.
>
> For my requirements i'm gradually getting used to vim which can do anything...
> but quite a bit of reading is involved. Like you i wnat to use the same editor
> for text as i do for answering email (i use alpine).
>
> james
> Are you Chris Green from Suffolk?
>
> _______________________________________________
> vile mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/vile
=---------------------
paul fox, address@hidden (arlington, ma, where it's 43.9 degrees)
_______________________________________________
vile mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/vile