[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?
Thu, 06 Dec 2012 08:24:45 -0500
> On Wed, Dec 05, 2012 at 08:50:47PM +0000, James Freer wrote:
> > That would format the whole file which for email (assuming Mutt is
> > like Alpine) one doesn't want. I think he only wants paragraph
> > format like Pico's ^J. I did use vim with Set Linebreak in the
> > .vimrc - can't remember exactly now... but it wrapped ALL because
> > with the >> there isn't then a blank line to mark a separate
> > paragraph. So it was back to Pico until i've mastered colour schemes
> > and other things for my full .vimrc file.
> That's right, I hadn't really completely thought out what the problem
> My mail client (mutt) feeds the whole *body* of the message, with each
> line prefixed with '> ', into the editor. What I really want to do is
> to find only the long lines and split them in the way that CTRL-Af}
> would do (except that it wouldn't stop at the end of the line).
certainly a wrapper could do it, but i think you'll still have trouble
identifying the parts of the file you want wrapped and which you
> Thinking about it further the obvious approach is a wrapper script for
> vile when mutt calls the editor (the editor command in mutt can be
> specified). It should be pretty easy to write something in awk for
> example to wrap the long lines as required.
> Chris Green
> vile mailing list
paul fox, address@hidden (arlington, ma, where it's 24.8 degrees)