1 Return-Path: <imain@stemwinder.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C8244431FBD
\r
6 for <notmuch@notmuchmail.org>; Wed, 1 Oct 2014 10:11:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Y2LIYmkoYpu1 for <notmuch@notmuchmail.org>;
\r
16 Wed, 1 Oct 2014 10:11:32 -0700 (PDT)
\r
17 Received: from cmta7.telus.net (cmta7.telus.net [209.171.16.80])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 38962431FB6
\r
19 for <notmuch@notmuchmail.org>; Wed, 1 Oct 2014 10:11:32 -0700 (PDT)
\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta7.telus.net with TELUS
\r
21 id xtBX1o00K1LiWEf01tBX49; Wed, 01 Oct 2014 11:11:31 -0600
\r
22 X-Authority-Analysis: v=2.0 cv=TdpIQ2sh c=1 sm=2
\r
23 a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=tsa3CZZnAAAA:8
\r
24 a=fArRigtdUK9Wchup0toA:9 a=EcQDfIwDZEqJA1f7rVUV8Q==:117
\r
25 X-Telus-Outbound-IP: 207.102.88.62
\r
26 From: Ian Main <imain@stemwinder.org>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH] VIM: Make starting in 'insert' mode for compose optional
\r
29 Date: Wed, 1 Oct 2014 10:11:28 -0700
\r
30 Message-Id: <1412183488-12707-1-git-send-email-imain@stemwinder.org>
\r
31 X-Mailer: git-send-email 1.9.3
\r
32 X-BeenThere: notmuch@notmuchmail.org
\r
33 X-Mailman-Version: 2.1.13
\r
35 List-Id: "Use and development of the notmuch mail system."
\r
36 <notmuch.notmuchmail.org>
\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
38 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
40 List-Post: <mailto:notmuch@notmuchmail.org>
\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
44 X-List-Received-Date: Wed, 01 Oct 2014 17:11:37 -0000
\r
46 This adds a variable to make starting in insert mode optional when
\r
47 composing and replying to emails. I found it unusual to be started in
\r
48 insert mode so I thought I'd make it optional as others may find this as
\r
53 vim/notmuch.vim | 13 +++++++++++--
\r
54 1 file changed, 11 insertions(+), 2 deletions(-)
\r
56 diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
57 index 331e930..252f16b 100644
\r
58 --- a/vim/notmuch.vim
\r
59 +++ b/vim/notmuch.vim
\r
60 @@ -59,6 +59,7 @@ let s:notmuch_datetime_format_default = '%d.%m.%y %H:%M:%S'
\r
61 let s:notmuch_reader_default = 'mutt -f %s'
\r
62 let s:notmuch_sendmail_default = 'sendmail'
\r
63 let s:notmuch_folders_count_threads_default = 0
\r
64 +let s:notmuch_compose_start_insert_default = 1
\r
66 function! s:new_file_buffer(type, fname)
\r
67 exec printf('edit %s', a:fname)
\r
68 @@ -132,7 +133,9 @@ function! s:show_reply()
\r
69 let b:compose_done = 0
\r
70 call s:set_map(g:notmuch_compose_maps)
\r
71 autocmd BufDelete <buffer> call s:on_compose_delete()
\r
73 + if g:notmuch_compose_start_insert
\r
78 function! s:compose()
\r
79 @@ -140,7 +143,9 @@ function! s:compose()
\r
80 let b:compose_done = 0
\r
81 call s:set_map(g:notmuch_compose_maps)
\r
82 autocmd BufDelete <buffer> call s:on_compose_delete()
\r
84 + if g:notmuch_compose_start_insert
\r
89 function! s:show_info()
\r
90 @@ -428,6 +433,10 @@ function! s:set_defaults()
\r
94 + if !exists('g:notmuch_compose_start_insert')
\r
95 + let g:notmuch_compose_start_insert = s:notmuch_compose_start_insert_default
\r
98 if !exists('g:notmuch_custom_search_maps') && exists('g:notmuch_rb_custom_search_maps')
\r
99 let g:notmuch_custom_search_maps = g:notmuch_rb_custom_search_maps
\r