X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/2c85158067da6cde66d4718c8436697304ad27d7..11a0c9f9676ea9f8f0e8768b3e6cc569786320c4:/vim/ftplugin/mail.vim?ds=inline 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