From: Simon Ruderich Date: Thu, 15 Nov 2012 20:17:00 +0000 (+0100) Subject: after/ftplugin/mail.vim: Better regex to remove spaces between ">". X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7692f9da9c5437cfd3f8636b9c539d6cab5c8201;p=config%2Fdotfiles.git after/ftplugin/mail.vim: Better regex to remove spaces between ">". --- 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