X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/0b601f86cd726c94f745ed9face8d0e2aa1d618e..5c2cf9e8bf6e29f72071969a6f59a9cbe5ceb6f7:/vim/ftplugin/mail.vim diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim index 654f7ba..a453815 100644 --- a/vim/ftplugin/mail.vim +++ b/vim/ftplugin/mail.vim @@ -1,3 +1,8 @@ setlocal formatoptions+=awt " auto-format -keeppatterns keepjumps 1;/^$/s/ *$/ +" 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