X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d1a0c7e9712ef256b45f4072014b4302d6335cb3..9f7042a1d0c278c0f0d8d26dc506a961f3f53e29:/vim/ftplugin/mail.vim diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim index 82b054c..a453815 100644 --- a/vim/ftplugin/mail.vim +++ b/vim/ftplugin/mail.vim @@ -1 +1,8 @@ -setlocal formatoptions+=aw " auto-format +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