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 |