On Jan 10, 2016 at 8:11, Cameron Simpson wrote:
On 09Jan2016 04:22, David Ellement <[email protected]> wrote:
On 2016-01-09, Cameron Simpson wrote
My current practice is: leave this alone, and use format=flowed ...
I'm a vim user, so if you also are I can assist in vim modes to aid
format=flowed composition. I highly recommend it!

I'm interested; perhaps there are others.  If you get multiple
responses, could you reply to the list?  (Or a link, if the information
is available somewhere).

There was a long thread back in September 2015 about this.

For me the core items are the mutt settings "text_flowed=yes" and the vim setting "set formatoptions=waqj".

In more detail:

mutt settings: text_flowed=yes, reflow_text=yes, reflow_wrap=-4
I set "editor=vim-flowed" when composing/replying to mail. It is normally just vim, as vim-flowed is hyper annoying if you're not editing email; so it is just vim (well, $EDITOR) even in my mutt settings - only the mail editing phase gets vim-flowed.

and vim-flowed is here:

https://bitbucket.org/cameron_simpson/css/src/tip/bin/vim-flowed

It trims trailing spaces from the headers (I use "edit_headers=yes") and invokes vim with "set formatoptions=waqj".
Why not put these settings in `ftplugin/mail.vim` or in a `autocmd FileType mail [..]`?

Anyway, these are my mail.vim settings:
https://git.rmz.io/dotfiles.git/blob/HEAD:/vim/ftplugin/mail.vim

I do a bit more mangling than you.

Reply via email to