On Wed, Dec 19, 2018 at 11:10:02AM -0800, Will Yardley wrote:
> I honestly think that without better editor integration, and / or some
> way of validating that the content is actually formatted properly (or
> post-editing formatting within Mutt), that it's not a good idea for Mutt
> to support flowed text. Even when people are using the right options in
> vim and doing everything else right, it seems very fragile and prone to
> generating invalid flowed emails.

I stopped using format=flowed because not much besides Mutt supports it, 
and particularly not GMail and Outlook.  But when I did use it, I 
configured vim to use syntax highlighting to add an underline highlight 
to the trailing space at the end of a line that format=flowed uses to 
know that it's a line that should be flowed.

It was subtle enough to not bother me when composing (since the sentence 
your composing has a "trailing space" before you start the next word), 
but blatent enough to see when I'm looking over the message before 
saving.

In ~/.vim/after/syntax/mail.vim, I have:

" color trailing spaces to easily see where format=flowed lines will wrap and
" not wrap
syntax match lineEndWrap / $/
hi WrapLines term=bold,underline cterm=bold,underline gui=bold,underline

if &background == "dark"
  hi WrapLines ctermfg=White ctermbg=Black guifg=Black guibg=White
else
  hi WrapLines ctermfg=Black ctermbg=White guifg=Black guibg=White
endif

hi def link lineEndWrap WrapLines

-- 
Ed Blackman

Reply via email to