X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/eafe9a0964540b32dc3d1f237e9e0d9e70338505..f22b24fddcfef913f1a186e686114ad0bf6d27cd:/vim/ftplugin/mail.vim?ds=sidebyside diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim index 1d4dbba..a453815 100644 --- a/vim/ftplugin/mail.vim +++ b/vim/ftplugin/mail.vim @@ -1 +1,8 @@ setlocal formatoptions+=awt " auto-format + +" pad '>' with a single space +keeppatterns keepjumps %s/>\ze\([^> ]\|$\)/> /e +" remove spaces between '>' +keeppatterns keepjumps %s/> >/>>/ge +" remove trailing spaces in header +keeppatterns keepjumps 1;/^$/s/ *$//e