From: Jason Woofenden Date: Mon, 11 Jul 2011 05:40:06 +0000 (-0400) Subject: vim: fix space key: now archives (did opposite) X-Git-Tag: 0.7_rc1~10 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=2b79776eedf5e59332921eb071b5412c12499cb6;p=notmuch vim: fix space key: now archives (did opposite) In vim, in the message view, space is supposed to remove the "unread" and "inbox" tags, but was sometimes adding them instead. This patch assures that they are always removed by this binding. Signed-off-by: Felipe Contreras --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 44108273..49a52eb4 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -596,7 +596,7 @@ function! s:NM_show_advance_marking_read_and_archiving() let filter = NM_combine_tags('tag:', advance_tags, 'OR', '()') \ + ['AND'] \ + NM_combine_tags('', ids, 'OR', '()') - call map(advance_tags, '"+" . v:val') + call map(advance_tags, '"-" . v:val') call NM_tag(filter, advance_tags) call NM_show_next(1, 1) return