.vim/ftplugin/mail.vim

Fri, 15 Jul 2016 23:14:19 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Jul 2016 23:14:19 -0400
changeset 349
976c8bf0499b
parent 348
d72bc8c8d6f0
child 351
47b0510974fe
permissions
-rw-r--r--

set reflow_wrap = wrap


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