On Mon, November 19, 2012 08:32, Chris Lott wrote:
> I'm trying to take email that has quotes with long lines:
>
> > a really long line here that wraps that has no wraps in it and
> > drives
> me crazy
>
> and format them to:
>
> > a really long line here that wraps that has no wraps in it and
> > drives me crazy
>
> I've tried the tip(s) at:
>
http://vim.wikia.com/wiki/Fix_email_quotations_with_long_lines
>
> but I just end up with:
>
> > a really long line here that wraps that has
> no wraps in it and drives me crazy
>
> (note the lack of a > on the second line).
Make sure, your formatoptions include 'q' and 'c' (In Vim, check the
output of :set fo? or even :verbose set fo?). I can then successfully
use gqap on such a paragraph and have it nicely reformat and inserting
quotation signs where needed. Other then that, I don't think I set any
other options for writing Emails.
Oh and forget that tip about ':set editor=vim -c...' this is just
plain wrong. The correct approach would make use of filetype plugins
where you can customize all needed options.
regards,
Christian