From ae525b7e5b980a949e00b79f9cd5e9a5c1b30c8f Mon Sep 17 00:00:00 2001 From: Jakob Date: Thu, 29 Mar 2012 15:02:53 -0700 Subject: vim: fix regex after "notmuch show" output change The new field "excluded" was added to the output and made this regex fail. Signed-off-by: Felipe Contreras --- vim/plugin/notmuch.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vim') diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 21985c7..8f27fb9 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -48,7 +48,7 @@ let s:notmuch_defaults = { \ 'g:notmuch_show_part_end_regexp': ' part}' , \ 'g:notmuch_show_marker_regexp': ' \\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$', \ - \ 'g:notmuch_show_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$', + \ 'g:notmuch_show_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([0-9]*\) filename:\(.*\)$', \ 'g:notmuch_show_tags_regexp': '(\([^)]*\))$' , \ \ 'g:notmuch_show_signature_regexp': '^\(-- \?\|_\+\)$' , @@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines) let msg['id'] = m[1] let msg['depth'] = m[2] let msg['match'] = m[3] - let msg['filename'] = m[4] + let msg['excluded'] = m[4] + let msg['filename'] = m[5] endif let in_message = 1 -- cgit v1.2.3 From 85e991affc952faa13b7a36e109c0c4360fb98c9 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 22 Feb 2012 18:57:56 +0200 Subject: vim: simplify build There should be no functional changes, except that you don't need to make the directories before installing. Signed-off-by: Felipe Contreras --- vim/Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'vim') diff --git a/vim/Makefile b/vim/Makefile index 89e18be..f17bebf 100644 --- a/vim/Makefile +++ b/vim/Makefile @@ -1,11 +1,11 @@ .PHONY: all help install link symlink -FILES = plugin/notmuch.vim \ - $(wildcard syntax/notmuch-*.vim) +files = plugin/notmuch.vim \ + $(wildcard syntax/notmuch-*.vim) +prefix = $(HOME)/.vim +destdir = $(prefix)/plugin -PREFIX = $(shell ls -d ~/.vim/) - -OUT_FILES = $(FILES:%=${PREFIX}/%) +INSTALL = install -D -m644 all: help @@ -16,9 +16,8 @@ help: @echo " make install - copy plugin scripts and syntax files to ~/.vim" @echo " make symlink - create symlinks in ~/.vim (useful for development)" -install: ${OUT_FILES} -link symlink: - ${MAKE} SYMLINK=1 install +install: + @for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done -${OUT_FILES}: ${PREFIX}/%: % - $(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@ +link symlink: INSTALL = ln -fs +link symlink: install -- cgit v1.2.3