From: Samir Benmendil Date: Wed, 14 Oct 2015 11:38:09 +0000 (+0100) Subject: vim: clean up emails a bit more X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/c4bf3ec6e31b96bfcca0b27994a4df142fc3781c vim: clean up emails a bit more --- diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim index 654f7ba..870f165 100644 --- a/vim/ftplugin/mail.vim +++ b/vim/ftplugin/mail.vim @@ -1,3 +1,8 @@ setlocal formatoptions+=awt " auto-format +" pad '>' with a single space +keeppatterns keepjumps %s/>\ze\([^> ]\|$\)/> / +" remove spaces between '>' +keeppatterns keepjumps %s/> >/>>/g +" remove trailing spaces in header keeppatterns keepjumps 1;/^$/s/ *$/