From 418a7f3108273c5b8a0ff36ab1bb3b9886089648 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Mon, 23 Nov 2009 09:28:40 -0500 Subject: [PATCH] vim: add git-diff.vim in README, make syntax work w/o the script --- vim/README | 7 +++++++ vim/syntax/notmuch-show.vim | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/vim/README b/vim/README index 9f1ff571..02bd3e65 100644 --- a/vim/README +++ b/vim/README @@ -3,15 +3,22 @@ through vim. NOTE: this is a work in progress. Patches welcome. +The vim interface makes use of the git-diff.vim syntax file which is +available from + http://github.com/motemen/git-vim/blob/master/syntax/git-diff.vim + + To install: make install + To run: vim -c ':NotMuch' from vim: :NotMuch + Buffer types: [notmuch-folders] Folder list, or technically a list of saved searches. diff --git a/vim/syntax/notmuch-show.vim b/vim/syntax/notmuch-show.vim index 20c6b88f..20bcc399 100644 --- a/vim/syntax/notmuch-show.vim +++ b/vim/syntax/notmuch-show.vim @@ -11,7 +11,9 @@ syntax match nmShowMsgHeadVal /^\([^:]\+: \)\@<=.*/ contained syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit syntax include @nmShowMsgBodyMail syntax/mail.vim -syntax include @nmShowMsgBodyGit syntax/git-diff.vim + +" git-diff.vim marks up diffs in emails, see README for details +silent! syntax include @nmShowMsgBodyGit syntax/git-diff.vim highlight nmShowMsgDescWho term=reverse cterm=reverse gui=reverse highlight link nmShowMsgDescDate Type -- 2.26.2