diff --git a/.vim/ftplugin/mail.vim b/.vim/ftplugin/mail.vim new file mode 100644 --- /dev/null +++ b/.vim/ftplugin/mail.vim @@ -0,0 +1,17 @@ +function IsReply() + if line('$') > 1 + :/^$/ + :noh + :+1 + endif +endfunction + +augroup mail_filetype + autocmd! + autocmd VimEnter /tmp/mutt* :call IsReply() + autocmd VimEnter /tmp/mutt* :exe 'startinsert' +augroup END + +setl textwidth=72 +setl formatoptions=awn +setl spell