.vim/ftplugin/mail.vim

Fri, 15 Jul 2016 22:59:43 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Jul 2016 22:59:43 -0400
changeset 348
d72bc8c8d6f0
child 349
976c8bf0499b
permissions
-rw-r--r--

use text_flowed, move mail settings to ftplugin

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

mercurial