From: Simon Ruderich Date: Wed, 10 Apr 2013 01:37:19 +0000 (+0200) Subject: after/ftplugin/mail.vim: Move cursor after replies. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=04598af6bbe257b8366da6ac2df45093e3c5dc58 after/ftplugin/mail.vim: Move cursor after replies. --- diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index e78fd95..8d46f5a 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -33,6 +33,10 @@ silent! %s/^>\+\zs >/>/g " Move directly after the headers. normal! gg normal! } +" And if the mail contains a reply move the cursor after the quote. +if search('^On .\+ wrote:$', 'n') + normal! } +endif " Fold quotes. Thanks to Teemu Likonen " (http://permalink.gmane.org/gmane.editors.vim.devel/20890,