From 04598af6bbe257b8366da6ac2df45093e3c5dc58 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 10 Apr 2013 03:37:19 +0200 Subject: [PATCH] after/ftplugin/mail.vim: Move cursor after replies. --- vim/after/ftplugin/mail.vim | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.43.2