]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
after/ftplugin/mail.vim: Better regex to remove spaces between ">".
authorSimon Ruderich <simon@ruderich.org>
Thu, 15 Nov 2012 20:17:00 +0000 (21:17 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 15 Nov 2012 20:17:00 +0000 (21:17 +0100)
vim/after/ftplugin/mail.vim

index 2c44531ac2b9dca18fe677f4084826c27467e549..68eaf6f508639f3e6288f23f337eb4b653d5ccf4 100644 (file)
@@ -26,9 +26,9 @@ setlocal textwidth=65
 " Replace trailing whitespace after quotes.
 silent! %s/\(^>.\+\)\@<=\s\+$//
 " Remove spaces between quotes (> > to >>).
-silent! %s/^\(>\+\) >/\1>/g
-silent! %s/^\(>\+\) >/\1>/g
-silent! %s/^\(>\+\) >/\1>/g
+silent! %s/^>\+\zs >/>/g
+silent! %s/^>\+\zs >/>/g
+silent! %s/^>\+\zs >/>/g
 
 " Move directly after the headers.
 normal gg