]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
ftplugin/mail.vim: Simplify regex to remove trailing whitespace.
authorSimon Ruderich <simon@ruderich.org>
Mon, 1 Apr 2013 21:45:26 +0000 (23:45 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 1 Apr 2013 21:45:26 +0000 (23:45 +0200)
vim/after/ftplugin/mail.vim

index 775bba41d4f6c34649c0ae4b5e269900b51fe71b..94af0bce972c0dc10e0a568c9885b9350562b232 100644 (file)
@@ -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