simplify mail autoinsert, disable cursor autojump for mail

Fri, 18 Nov 2016 17:35:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 18 Nov 2016 17:35:46 -0500
changeset 434
be837354e11b
parent 433
c141d49862c8
child 435
3966bb45030f

simplify mail autoinsert, disable cursor autojump for mail

.vim/ftplugin/mail.vim file | annotate | diff | comparison | revisions
.vimrc file | annotate | diff | comparison | revisions
--- a/.vim/ftplugin/mail.vim
+++ b/.vim/ftplugin/mail.vim
@@ -33,9 +33,6 @@ call Mail_Erase_Sig()
 
 " Get right to composing the body:
 if line('$') > 1
-  :0
-  :/^$/
-  :normal 2] 
-  :+1
-  :exe 'startinsert'
+  :normal gg}o
+  :startinsert
 endif
--- a/.vimrc
+++ b/.vimrc
@@ -356,7 +356,7 @@ augroup vimrc
 
   " Jump to last known pos
   autocmd BufReadPost *
-    \ if line("'\"") >= 1 && line("'\"") <= line("$") |
+    \ if &filetype != 'mail' && line("'\"") >= 1 && line("'\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif
 augroup END

mercurial