.vim/ftplugin/mail.vim

changeset 351
47b0510974fe
parent 349
976c8bf0499b
child 352
a19225f9b247
equal deleted inserted replaced
350:31081755a2be 351:47b0510974fe
1 1
2 function IsReply() 2 function JumpAndInsert()
3 if line('$') > 1 3 if line('$') > 1
4 :/^$/ 4 :/^$/
5 :noh 5 :normal 2]
6 :+1 6 :+1
7 :exe 'startinsert'
7 endif 8 endif
8 endfunction 9 endfunction
9 10
10 augroup mail_filetype 11 augroup mail_filetype
11 autocmd! 12 autocmd!
12 autocmd VimEnter /tmp/mutt* :call IsReply() 13 autocmd VimEnter /tmp/mutt* :call JumpAndInsert()
13 autocmd VimEnter /tmp/mutt* :exe 'startinsert'
14 augroup END 14 augroup END
15 15
16 setl textwidth=72 16 setl textwidth=72
17 setl formatoptions=awn 17 setl formatoptions=awn
18 setl spell 18 setl spell

mercurial