X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fftplugin%2Fmail.vim;h=8d46f5a6e28d5f2c5689d3da28d1b96402d41c2b;hb=617a06f31f2c223fd5aebd1c32514a2eb3ba30bc;hp=e78fd95dd2ca3feaff66064dbaa795dd9719eb3f;hpb=1d9294eb6ef571b890f995106f55103b7f02d95a;p=config%2Fdotfiles.git 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,