.vim/ftplugin/mail.vim

changeset 368
91d4fb4e0a42
parent 361
7ab7173fb61f
child 387
d16b5c66461a
--- a/.vim/ftplugin/mail.vim
+++ b/.vim/ftplugin/mail.vim
@@ -9,24 +9,11 @@ function! JumpAndInsert()
   endif
 endfunction
 
-function! AutoFmtToggle()
-  if &formatoptions =~ 'a'
-    set fo-=a
-    echo '-a'
-  else
-    set fo+=a
-    echo '+a'
-  endif
-endfunction
-
 augroup mail_filetype
   autocmd!
   autocmd BufReadPost mutt-* :call JumpAndInsert()
 augroup END
 
 setl textwidth=72
-setl formatoptions=aw
+setl formatoptions+=awt12
 setl spell
-
-map <silent> <leader>a :call AutoFmtToggle()<CR>
-imap <silent> <leader>a :call AutoFmtToggle()<CR>

mercurial