From: Simon Ruderich Date: Mon, 1 Apr 2013 21:45:26 +0000 (+0200) Subject: ftplugin/mail.vim: Simplify regex to remove trailing whitespace. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=9a709886697d00c33edc9faad82694250e6beca8 ftplugin/mail.vim: Simplify regex to remove trailing whitespace. --- diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 775bba4..94af0bc 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -24,7 +24,7 @@ setlocal textwidth=65 " Remove trailing whitespace after quotes. -silent! %s/\(^>.\{-}\)\@<=\s\+$// +silent! %s/^>.\{-}\zs\s\+$// " Remove spaces between quotes (> > to >>). silent! %s/^>\+\zs >/>/g silent! %s/^>\+\zs >/>/g