.vim/ftplugin/mail.vim

changeset 348
d72bc8c8d6f0
child 349
976c8bf0499b
new file mode 100644
--- /dev/null
+++ b/.vim/ftplugin/mail.vim
@@ -0,0 +1,17 @@
+function IsReply()
+  if line('$') > 1
+    :/^$/
+    :noh
+    :+1
+  endif
+endfunction
+
+augroup mail_filetype
+  autocmd!
+  autocmd VimEnter /tmp/mutt* :call IsReply()
+  autocmd VimEnter /tmp/mutt* :exe 'startinsert'
+augroup END
+
+setl textwidth=72
+setl formatoptions=awn
+setl spell

mercurial