.vim/ftplugin/mail.vim

changeset 387
d16b5c66461a
parent 368
91d4fb4e0a42
child 411
1bb7fe33cd74
equal deleted inserted replaced
386:203cb29dbc67 387:d16b5c66461a
1 setl textwidth=72
2 setl formatoptions=jaw12tcql
3 setl spell
1 4
2 function! JumpAndInsert() 5 " Get right to composing the body:
3 if line('$') > 1 6 if line('$') > 1
4 :0 7 :0
5 :/^$/ 8 :/^$/
6 :normal 2] 9 :normal 2]
7 :+1 10 :+1
8 :exe 'startinsert' 11 :exe 'startinsert'
9 endif 12 endif
10 endfunction
11 13
12 augroup mail_filetype
13 autocmd!
14 autocmd BufReadPost mutt-* :call JumpAndInsert()
15 augroup END
16
17 setl textwidth=72
18 setl formatoptions+=awt12
19 setl spell

mercurial