This is what I do. (almost stock vi)

Go to first line to be "fixed".
ma

Go to last line to be "fixed" - note that there should be no formatted
(indented, etc.) text in between.
mb (not really necessary, but the next step may move the focus line)
:'a,'bs/^> //  (gets rid of quoting)
:'a,'b! fmt

You may now have a new end of line, but 'a should still exist.
Go to the end again:
:'a,.s/^/> /

Ideally, mutt would be able to do this for me, but _I'M_ not writing
it - these types of text manglings are messy and can verge on religion.

On Wed, Mar 03, 1999 at 10:27:37AM -0800, Jeff wrote:
> I'm around a lot of users who don't wrap at 72 or 76 columns, and so
> everytime I reply to their message, I get the first line with the
> quote-char in front of it, and the rest "unquoted". I've thought about
> using an external program like fmt to fmt the text before passing it into
> my editor (vim) but I also want to append a ">" before each new line to
> make it nicely quoted. I also tried setting the editor to fmt | vim but
> that doesn't work either :)
> 
> Do I need to filter somehow? 
> 
> I'm probably missing some RTFM here, but does anyone have a nice macro
> that will do something like this? Will Newsbody do it?
> 
> Thanks...
> 
> -J
> 

-- 
 Jeffrey Haas   
[EMAIL PROTECTED]      "Place all beliefs in proper receptacle"

Reply via email to