]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/after/ftplugin/mail.vim
after/ftplugin/mail.vim: Move cursor after replies.
[config/dotfiles.git] / 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,