]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/after/ftplugin/mail.vim
ftplugin/mail.vim: Simplify regex to remove trailing whitespace.
[config/dotfiles.git] / 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