From 97e946d447b80605e1319d8d51580177c78dc6ff Mon Sep 17 00:00:00 2001 From: Franz Fellner Date: Sat, 18 Oct 2014 22:37:34 +0200 Subject: [PATCH] RE: [PATCH] VIM: Make starting in 'insert' mode for compose optional --- b6/74b7de68120161b60a5b48a360ea80adb10ab8 | 133 ++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 b6/74b7de68120161b60a5b48a360ea80adb10ab8 diff --git a/b6/74b7de68120161b60a5b48a360ea80adb10ab8 b/b6/74b7de68120161b60a5b48a360ea80adb10ab8 new file mode 100644 index 000000000..fb9e31a06 --- /dev/null +++ b/b6/74b7de68120161b60a5b48a360ea80adb10ab8 @@ -0,0 +1,133 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id D5E14431FBC + for ; Sat, 18 Oct 2014 13:37:31 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id dPVAMVNwigWi for ; + Sat, 18 Oct 2014 13:37:24 -0700 (PDT) +Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com + [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 63693431FB6 + for ; Sat, 18 Oct 2014 13:37:24 -0700 (PDT) +Received: by mail-wi0-f182.google.com with SMTP id n3so3585091wiv.9 + for ; Sat, 18 Oct 2014 13:37:23 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=date:from:to:message-id:in-reply-to:references:subject:mime-version + :content-type:content-transfer-encoding; + bh=JVW35spGYZneiGwh8CSMWgsZLJgAvv/veAJb3ybBOd0=; + b=TPwsKonaEWDvmeVuQLQi77aI6XA0uC4gIOyn9mO9p+D+M6va44nezrkzBgptrhSfJh + FkI/arqKTuG0zc+9ENBVad8PcYaBhJtK+By4ESZtavgZnZzqCSRJKM0ZE4XEkkUYQX+t + C0UYewOJheOypaIQwwxKmMGy9RVkht9NhFAj1s7Gkm/gUDJva/NsgltE31ze8ivUE+kP + fyLOe1cd76yMZkH04PY/C5T2YfEAHHgM8mjNaIXA3qRym2Yvuj0yMwHCzjcZyYYRyooc + wRXU1qS5bXls1oElnblK1zOw8qSbyCzgKy1/Gg6U+wwb0iURlyDCzxejp8SXnZHjhVTs + sU4Q== +X-Received: by 10.194.108.104 with SMTP id hj8mr20820148wjb.28.1413664643322; + Sat, 18 Oct 2014 13:37:23 -0700 (PDT) +Received: from localhost (p5B00C687.dip0.t-ipconnect.de. [91.0.198.135]) + by mx.google.com with ESMTPSA id cu9sm6195044wjc.3.2014.10.18.13.37.22 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sat, 18 Oct 2014 13:37:22 -0700 (PDT) +Date: Sat, 18 Oct 2014 22:37:34 +0200 +From: Franz Fellner +To: Ian Main , Ian Main , + notmuch@notmuchmail.org +Message-ID: <5442cf8e357d4_255f136de94c@TP_L520.notmuch> +In-Reply-To: <1412183488-12707-1-git-send-email-imain@stemwinder.org> +References: <1412183488-12707-1-git-send-email-imain@stemwinder.org> +Subject: RE: [PATCH] VIM: Make starting in 'insert' mode for compose optional +Mime-Version: 1.0 +Content-Type: text/plain; + charset=utf-8 +Content-Transfer-Encoding: 7bit +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 18 Oct 2014 20:37:32 -0000 + +Ian Main wrote: +> I found it unusual to be started in insert mode +Me too. +Patch LGTM. Works as expected - thx! + +Franz +> +> Ian +> --- +> vim/notmuch.vim | 13 +++++++++++-- +> 1 file changed, 11 insertions(+), 2 deletions(-) +> +> diff --git a/vim/notmuch.vim b/vim/notmuch.vim +> index 331e930..252f16b 100644 +> --- a/vim/notmuch.vim +> +++ b/vim/notmuch.vim +> @@ -59,6 +59,7 @@ let s:notmuch_datetime_format_default = '%d.%m.%y %H:%M:%S' +> let s:notmuch_reader_default = 'mutt -f %s' +> let s:notmuch_sendmail_default = 'sendmail' +> let s:notmuch_folders_count_threads_default = 0 +> +let s:notmuch_compose_start_insert_default = 1 +> +> function! s:new_file_buffer(type, fname) +> exec printf('edit %s', a:fname) +> @@ -132,7 +133,9 @@ function! s:show_reply() +> let b:compose_done = 0 +> call s:set_map(g:notmuch_compose_maps) +> autocmd BufDelete call s:on_compose_delete() +> - startinsert! +> + if g:notmuch_compose_start_insert +> + startinsert! +> + end +> endfunction +> +> function! s:compose() +> @@ -140,7 +143,9 @@ function! s:compose() +> let b:compose_done = 0 +> call s:set_map(g:notmuch_compose_maps) +> autocmd BufDelete call s:on_compose_delete() +> - startinsert! +> + if g:notmuch_compose_start_insert +> + startinsert! +> + end +> endfunction +> +> function! s:show_info() +> @@ -428,6 +433,10 @@ function! s:set_defaults() +> endif +> endif +> +> + if !exists('g:notmuch_compose_start_insert') +> + let g:notmuch_compose_start_insert = s:notmuch_compose_start_insert_default +> + endif +> + +> if !exists('g:notmuch_custom_search_maps') && exists('g:notmuch_rb_custom_search_maps') +> let g:notmuch_custom_search_maps = g:notmuch_rb_custom_search_maps +> endif +> -- +> 1.9.3 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch + + -- 2.26.2