From 7692f9da9c5437cfd3f8636b9c539d6cab5c8201 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 15 Nov 2012 21:17:00 +0100 Subject: [PATCH] after/ftplugin/mail.vim: Better regex to remove spaces between ">". --- vim/after/ftplugin/mail.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 2c44531..68eaf6f 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -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 -- 2.45.2