Mon, 12 Sep 2016 17:29:48 -0400
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