.vim/ftplugin/mail.vim

changeset 351
47b0510974fe
parent 349
976c8bf0499b
child 352
a19225f9b247
--- a/.vim/ftplugin/mail.vim
+++ b/.vim/ftplugin/mail.vim
@@ -1,16 +1,16 @@
 
-function IsReply()
+function JumpAndInsert()
   if line('$') > 1
     :/^$/
-    :noh
+    :normal 2] 
     :+1
+    :exe 'startinsert'
   endif
 endfunction
 
 augroup mail_filetype
   autocmd!
-  autocmd VimEnter /tmp/mutt* :call IsReply()
-  autocmd VimEnter /tmp/mutt* :exe 'startinsert'
+  autocmd VimEnter /tmp/mutt* :call JumpAndInsert()
 augroup END
 
 setl textwidth=72

mercurial