From: Simon Ruderich Date: Thu, 15 Nov 2012 20:13:48 +0000 (+0100) Subject: after/ftplugin/mail.vim: Only remove trailing space after quotes. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=5f16623bed6d265a859e6559fb2860f80f285302;p=config%2Fdotfiles.git after/ftplugin/mail.vim: Only remove trailing space after quotes. It's important not to destroy whitespace in e.g. patches. --- diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index b0fee0c..2c44531 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -23,9 +23,8 @@ " Use only 65 characters per line as given in rfc1855. setlocal textwidth=65 -" Replace trailing spaces except after mail headers (To:, etc.) or a signature -" delimiter (-- ). -silent! %s/\(^\([a-zA-z-]\+:\|--\)\)\@.\+\)\@<=\s\+$// " Remove spaces between quotes (> > to >>). silent! %s/^\(>\+\) >/\1>/g silent! %s/^\(>\+\) >/\1>/g