.vim/ftplugin/mail.vim

Tue, 26 Jul 2016 16:06:13 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 26 Jul 2016 16:06:13 -0400
changeset 354
c7161b3ba76f
parent 352
a19225f9b247
child 361
7ab7173fb61f
permissions
-rw-r--r--

Fix up navigation


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=aw
setl spell

mercurial