]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
after/ftplugin/mail.vim: Move cursor after replies.
authorSimon Ruderich <simon@ruderich.org>
Wed, 10 Apr 2013 01:37:19 +0000 (03:37 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 10 Apr 2013 01:37:19 +0000 (03:37 +0200)
vim/after/ftplugin/mail.vim

index e78fd95dd2ca3feaff66064dbaa795dd9719eb3f..8d46f5a6e28d5f2c5689d3da28d1b96402d41c2b 100644 (file)
@@ -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 <tlikonen@iki.fi>
 " (http://permalink.gmane.org/gmane.editors.vim.devel/20890,