.vim/ftplugin/mail.vim

changeset 387
d16b5c66461a
parent 368
91d4fb4e0a42
child 411
1bb7fe33cd74
--- 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