From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iFy7BZ23fGBFxgAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 00:50:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YLZWAZ23fGD1PAAAB5/wlQ (envelope-from ) for ; Sun, 18 Apr 2021 22:50:05 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8AFF51C29B for ; Mon, 19 Apr 2021 00:50:04 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 29290271CD; Sun, 18 Apr 2021 18:49:24 -0400 (EDT) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by mail.notmuchmail.org (Postfix) with ESMTPS id D3A09271BA for ; Sun, 18 Apr 2021 18:49:18 -0400 (EDT) Received: by mail-oi1-x22a.google.com with SMTP id u16so16409460oiu.7 for ; Sun, 18 Apr 2021 15:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ribrz7bXISiSk/6mbSL9jkeaC52ynsOb6LnViPig4Y0=; b=rimZ89gVz6F0Ce4CfBW196Lxa79aNvxYg6gESbaGbADP8LbZ41rNaHFQKDb4d6vFWy 9CjAl0hCkAXfpZXkhnj5VzdAFVRUqjsFJbBqcer8PQXTKZjtV0qzmxCDYO11hK76Nf4/ X0cl9g9ZE+TsUDIg5EYeOuA5veiV0jTXqQfgby1dijwhQF+jrOtUjiga8wVmAjwGOb8o KhV+zuvVt4fU0NTT5SPGZ48ddJlHymI3GfAw7isi1tcctZQMTTkOe3eWjMfXjFK/vZy9 ZzIyOsY63ZIo3RBrxhG6dHrrMRLPqxVHRL6iu3dTrn/S47MtsazIxlG4cCZ7YatqoxtV hGSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ribrz7bXISiSk/6mbSL9jkeaC52ynsOb6LnViPig4Y0=; b=oqCilp9dciAo70NrEEc94xgko92RyKaWIuJV0XkqnFm6TPIxAGTzzSOsy68bNzo4Ai 2rjhTyTJgnd57G7+B/kykF+GcoEPfcI+e6EfhMPvKsOSxcwNn1B/8qVdz/gUr1im1m4S 3/MjqDeUzpo9mPlN1htQpxx6lEMOEysuWy3f20Z5+YcdV1kWlqRtgeNqivU6uRq6uSmt s4ifQdgiWrY7bemR55YnqnfhMWG/4JZcpgXhSiwL2lrB1JypYupBlxeUfMP01IimkOx+ M+R6AuG8ZJ4wFDGJ/ipdnzMZ9ckaxjOYciaxo52GtDUwZ75AzD4+9wsBPFaPK5nxSrJ4 BVTw== X-Gm-Message-State: AOAM530X/r14tkjXnUKJzqMwzEGajhhARYy18rULPGJYJFAF1wmYCbmx yAiLxGD1y6O+XUH6CGUvQnl7phxW3qkbWA== X-Google-Smtp-Source: ABdhPJyFMLFxA9cDt3Bk/PbcPt4RQWM9b4JVL/o8cxUlR6dqS34pj6bSzS8MOxkkRaL7DJ29T58mBw== X-Received: by 2002:a54:4809:: with SMTP id j9mr13056322oij.4.1618786157889; Sun, 18 Apr 2021 15:49:17 -0700 (PDT) Received: from localhost ([2806:2f0:4000:bfd0:a2c5:89ff:fe0c:1151]) by smtp.gmail.com with ESMTPSA id t19sm3054132otc.10.2021.04.18.15.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 15:49:17 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Cc: Felipe Contreras Subject: [PATCH 13/13] vim: README: sync with upstream Date: Sun, 18 Apr 2021 17:48:51 -0500 Message-Id: <20210418224851.88240-14-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210418224851.88240-1-felipe.contreras@gmail.com> References: <20210418224851.88240-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Message-ID-Hash: AFCCNBS7MFKTUBYPQ6VNIAXXPYLWIV6Z X-Message-ID-Hash: AFCCNBS7MFKTUBYPQ6VNIAXXPYLWIV6Z X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618786204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=gl2kVXXGahBktecUE7A0wUGxAz3r6RFILFW7fxeBaac=; b=Pi3tPJ3fcNq/T7Ph2I4CaxG+PokGlr/c9OBw6698ajBzUyGOUuiJbXZJTqp0c15K45PUmF oJvX/KoeJ3CW/n7gaNF1NQXBgPXLAFCgg4RNl9vMUQt2I9eorjubv5zuIWYnvVU21iBKsu 8CIxVNz7OgOQI8kkKemmg+UX5x6WpVKJfyX0/KxUrestkO+UbJHBpDPsD8YlMHpV5JJXzB vg6GFTnicQ9AxNMpS9ayObkmD+CM8agj/wMaw2ampJo5rsKeF3ZqcskBB5wijm/euPSpF0 tneAlkvvBS8gJd+3nKdvYmOH0IL4kvoHXtsm8eyMc349aX3eaaP/Mu6LpxKScg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618786204; a=rsa-sha256; cv=none; b=eQVTo1Kfz4C70JuLDSfgGVcLB7oeqKU4VNjfLWjaBqMu//y+FWH+oQZAzHyv0xpzeEvUfM YNyxKDUJudTWOUEhEOBggAsS82sKNvrWqDgoplmtt1k+xgnt6LAGHs0xd89toJs/ghNvZQ HUhoqt2OPOaWitweOWrbjXHGE4uWoY4ynXtwDqDVBjvF0Ta8fGTJ+ASWjpWRC2fqvhpsrL pdjfkRNvF+rYq4JYbe5Fgb44hiF5P704oxuRy13h18rw8Vsr56cslTQMBg9r4nk+wfymOb piCEt8DwNPBjmkqbwpKahiRDbQje1LY/I3gn74yOcjv9jBFgyQRmIGxVlM8JGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=rimZ89gV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.89 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=rimZ89gV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8AFF51C29B X-Spam-Score: -0.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: BZNiWfMHE3ea Signed-off-by: Felipe Contreras --- vim/README | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/vim/README b/vim/README index c137bacd..d9a635a2 100644 --- a/vim/README +++ b/vim/README @@ -3,7 +3,7 @@ This is a vim plug-in that provides a fully usable mail client interface, utilizing the notmuch framework, through it's ruby bindings. -== install == +== Install == Simply run 'make install'. However, check that you have the dependencies below. @@ -12,6 +12,8 @@ Simply run 'make install'. However, check that you have the dependencies below. Make sure your vim version has ruby support: check for +ruby in 'vim --version' features. + % vim --version | grep +ruby + === ruby bindings === Check if you are able to run the following command cleanly: @@ -28,16 +30,10 @@ directory in the notmuch source tree. Since libnotmuch library concentrates on things other than handling mail, we need a library to do that, and for Ruby the best library for that is called -'mail'. The easiest way to install it is with ruby's gem. In most distro's the -package is called 'rubygems'. - -Once you have gem, run: +'mail': % gem install mail -In some systems gems are installed on a per-user basis by default, so make sure -you are running as the same user as the one that installed them. - This gem is not mandatory, but it's extremely recommended. == Running == @@ -46,6 +42,15 @@ Simple: % gvim -c ':NotMuch' +You might want to write a wrapper script (e.g. `vnm`) + + #!/bin/sh + gvim -c ":NotMuch $*" + +So you can run: + + vnm is:inbox date:yesterday.. + Enjoy ;) == More stuff == @@ -53,10 +58,12 @@ Enjoy ;) As an example to configure a key mapping to add the tag 'to-do' and archive, this is what I use: -let g:notmuch_rb_custom_search_maps = { +---- +let g:notmuch_custom_search_maps = { \ 't': 'search_tag("+to-do -inbox")', \ } -let g:notmuch_rb_custom_show_maps = { +let g:notmuch_custom_show_maps = { \ 't': 'show_tag("+to-do -inbox")', \ } +---- -- 2.31.0