From 5f16623bed6d265a859e6559fb2860f80f285302 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 15 Nov 2012 21:13:48 +0100 Subject: [PATCH] after/ftplugin/mail.vim: Only remove trailing space after quotes. It's important not to destroy whitespace in e.g. patches. --- vim/after/ftplugin/mail.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.45.2