fix formatoptions and autorun

Mon, 12 Sep 2016 17:29:48 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 12 Sep 2016 17:29:48 -0400
changeset 387
d16b5c66461a
parent 386
203cb29dbc67
child 388
50ed49b3d1dc

fix formatoptions and autorun

.vim/ftplugin/mail.vim file | annotate | diff | comparison | revisions
--- a/.vim/ftplugin/mail.vim
+++ b/.vim/ftplugin/mail.vim
@@ -1,19 +1,13 @@
+setl textwidth=72
+setl formatoptions=jaw12tcql
+setl spell
 
-function! JumpAndInsert()
-  if line('$') > 1
-    :0
-    :/^$/
-    :normal 2] 
-    :+1
-    :exe 'startinsert'
-  endif
-endfunction
+" Get right to composing the body:
+if line('$') > 1
+  :0
+  :/^$/
+  :normal 2] 
+  :+1
+  :exe 'startinsert'
+endif
 
-augroup mail_filetype
-  autocmd!
-  autocmd BufReadPost mutt-* :call JumpAndInsert()
-augroup END
-
-setl textwidth=72
-setl formatoptions+=awt12
-setl spell

mercurial