[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Is there a way to apply CTRL-Af} to the whole of a file when
Re: [vile] Is there a way to apply CTRL-Af} to the whole of a file when it's loaded?
Wed, 05 Dec 2012 15:25:35 -0500
> 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?
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.
> > 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
> 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
> 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
> graphical editors do it but not console. My editor of choice would be Joe as
> used a wordstar editor first years ago and the keybindings are still the
> For my requirements i'm gradually getting used to vim which can do
> but quite a bit of reading is involved. Like you i wnat to use the same
> for text as i do for answering email (i use alpine).
> Are you Chris Green from Suffolk?
> vile mailing list
paul fox, address@hidden (arlington, ma, where it's 43.9 degrees)