.vim/ftplugin/mail.vim

Thu, 18 Aug 2016 14:40:57 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 18 Aug 2016 14:40:57 -0400
changeset 374
366c04327ad7
parent 368
91d4fb4e0a42
child 387
d16b5c66461a
permissions
-rw-r--r--

Add fogbugz helper

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