.vim/ftplugin/mail.vim

Sat, 16 Jul 2016 00:01:47 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 16 Jul 2016 00:01:47 -0400
changeset 351
47b0510974fe
parent 349
976c8bf0499b
child 352
a19225f9b247
permissions
-rw-r--r--

fix up for reply/compose cursor pos


function JumpAndInsert()
  if line('$') > 1
    :/^$/
    :normal 2] 
    :+1
    :exe 'startinsert'
  endif
endfunction

augroup mail_filetype
  autocmd!
  autocmd VimEnter /tmp/mutt* :call JumpAndInsert()
augroup END

setl textwidth=72
setl formatoptions=awn
setl spell

mercurial