Thu, 18 Aug 2016 14:40:57 -0400
Add fogbugz helper
349
976c8bf0499b
set reflow_wrap = wrap
Meredith Howard <mhoward@roomag.org>
parents:
348
diff
changeset
|
1 | |
361 | 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 | 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 | 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 |