.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

348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 function IsReply()
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 if line('$') > 1
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 :/^$/
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 :noh
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 :+1
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 endif
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 endfunction
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 augroup mail_filetype
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 autocmd!
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 autocmd VimEnter /tmp/mutt* :call IsReply()
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 autocmd VimEnter /tmp/mutt* :exe 'startinsert'
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 augroup END
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 setl textwidth=72
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 setl formatoptions=awn
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 setl spell

mercurial