.vim/ftplugin/mail.vim

Wed, 10 Aug 2016 08:11:15 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 10 Aug 2016 08:11:15 -0400
changeset 369
9b89f81c644b
parent 368
91d4fb4e0a42
child 387
d16b5c66461a
permissions
-rw-r--r--

add spellchk toggle

349
976c8bf0499b set reflow_wrap = wrap
Meredith Howard <mhoward@roomag.org>
parents: 348
diff changeset
1
361
7ab7173fb61f add autofmt toggle
Meredith Howard <mhoward@roomag.org>
parents: 352
diff changeset
2 function! JumpAndInsert()
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 if line('$') > 1
361
7ab7173fb61f add autofmt toggle
Meredith Howard <mhoward@roomag.org>
parents: 352
diff changeset
4 :0
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 :/^$/
351
47b0510974fe fix up for reply/compose cursor pos
Meredith Howard <mhoward@roomag.org>
parents: 349
diff changeset
6 :normal 2]
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 :+1
351
47b0510974fe fix up for reply/compose cursor pos
Meredith Howard <mhoward@roomag.org>
parents: 349
diff changeset
8 :exe 'startinsert'
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 endif
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 endfunction
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 augroup mail_filetype
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 autocmd!
361
7ab7173fb61f add autofmt toggle
Meredith Howard <mhoward@roomag.org>
parents: 352
diff changeset
14 autocmd BufReadPost mutt-* :call JumpAndInsert()
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 augroup END
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 setl textwidth=72
368
91d4fb4e0a42 improve text editing experience?
Meredith Howard <mhoward@roomag.org>
parents: 361
diff changeset
18 setl formatoptions+=awt12
348
d72bc8c8d6f0 use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19 setl spell

mercurial