X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fftplugin%2Fmail.vim;h=e78fd95dd2ca3feaff66064dbaa795dd9719eb3f;hb=1d9294eb6ef571b890f995106f55103b7f02d95a;hp=775bba41d4f6c34649c0ae4b5e269900b51fe71b;hpb=9d605338233fe8fe10d71a82c9fd83e9e82d0331;p=config%2Fdotfiles.git diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 775bba4..e78fd95 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -24,15 +24,15 @@ setlocal textwidth=65 " Remove trailing whitespace after quotes. -silent! %s/\(^>.\{-}\)\@<=\s\+$// +silent! %s/^>.\{-}\zs\s\+$// " Remove spaces between quotes (> > to >>). silent! %s/^>\+\zs >/>/g silent! %s/^>\+\zs >/>/g silent! %s/^>\+\zs >/>/g " Move directly after the headers. -normal gg -normal } +normal! gg +normal! } " Fold quotes. Thanks to Teemu Likonen " (http://permalink.gmane.org/gmane.editors.vim.devel/20890,