diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-26 23:09:57 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-26 23:09:57 -0500 |
commit | aa312db8cd333d3739011e2299905542c9031946 (patch) | |
tree | cd700ee18d9d3d26ed75d8ac235e456e7ac6eb37 /vim/plugin/notmuch.vim | |
parent | 8bafbac75c53631d0db351e20fb5f5bb0fcfb48e (diff) |
vim: make insert in compose mode configurable
Diffstat (limited to 'vim/plugin/notmuch.vim')
-rw-r--r-- | vim/plugin/notmuch.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 341f337..3c9c316 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -53,6 +53,7 @@ let s:notmuch_defaults = { \ \ 'g:notmuch_show_citation_regexp': '^\s*>' , \ + \ 'g:notmuch_compose_insert_mode_start': 1 , \ 'g:notmuch_compose_header_help': 1 , \ 'g:notmuch_compose_temp_file_dir': '~/.notmuch/compose/' , \ } @@ -943,7 +944,9 @@ function! s:NM_cmd_compose(words, body_lines) call <SID>NM_set_map('i', g:notmuch_compose_imaps) call cursor(start_on_line, strlen(start_on_line) + 1) - startinsert! + if g:notmuch_compose_insert_mode_start + startinsert! + endif echo 'Type your message, use <TAB> to jump to next header and then body.' endfunction @@ -976,7 +979,6 @@ function! s:NM_compose_next_entry_area() call cursor(lnum+1, strlen(getline(lnum+1)) + 1) return '' endif - echo 'mode=' . mode() if mode() == 'i' if !getbufvar(bufnr('.'), '&et') return "\t" |