You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
643 B

If you use the patched mmime to generate format=flowed emails, the
following code added to ~/.vimrc will give you a quick visual check that
the trailing whitespace is in the right place. Adjust the last two
autocommands if you configured a different maildir for drafts of outgoing
function! FixIndented()
" remove spaces at end of indented lines
silent! %s/^\s.*\zs \+$//
function! TextFlowed()
setl tw=72
setl fo+=w
setl nojs
setl nosmartindent
setl list
set listchars=trail:•
autocmd BufRead,BufNewFile */sent/cur/* call TextFlowed()
autocmd BufRead,BufWritePre */sent/cur/* call FixIndented()