[Top][All Lists]
[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
From: |
Paul Fox |
Subject: |
Re: [vile] Is there a way to apply CTRL-Af} to the whole of a file when it's loaded? |
Date: |
Thu, 06 Dec 2012 08:24:45 -0500 |
chris wrote:
> 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
> was.
>
> 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
don't.
paul
>
> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/vile
=---------------------
paul fox, address@hidden (arlington, ma, where it's 24.8 degrees)