.vim/ftplugin/mail.vim

changeset 348
d72bc8c8d6f0
child 349
976c8bf0499b
equal deleted inserted replaced
347:a2510f8c18cb 348:d72bc8c8d6f0
1 function IsReply()
2 if line('$') > 1
3 :/^$/
4 :noh
5 :+1
6 endif
7 endfunction
8
9 augroup mail_filetype
10 autocmd!
11 autocmd VimEnter /tmp/mutt* :call IsReply()
12 autocmd VimEnter /tmp/mutt* :exe 'startinsert'
13 augroup END
14
15 setl textwidth=72
16 setl formatoptions=awn
17 setl spell

mercurial