X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fftplugin%2Fmail.vim;h=8d46f5a6e28d5f2c5689d3da28d1b96402d41c2b;hb=04598af6bbe257b8366da6ac2df45093e3c5dc58;hp=94af0bce972c0dc10e0a568c9885b9350562b232;hpb=9a709886697d00c33edc9faad82694250e6beca8;p=config%2Fdotfiles.git diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 94af0bc..8d46f5a 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -31,8 +31,12 @@ silent! %s/^>\+\zs >/>/g silent! %s/^>\+\zs >/>/g " Move directly after the headers. -normal gg -normal } +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,