vim: add git-diff.vim in README, make syntax work w/o the script

This commit is contained in:
Bart Trojanowski 2009-11-23 09:28:40 -05:00
parent e9ca8e5037
commit 418a7f3108
2 changed files with 10 additions and 1 deletions

View file

@ -3,15 +3,22 @@ through vim.
NOTE: this is a work in progress. Patches welcome. <bart@jukie.net> NOTE: this is a work in progress. Patches welcome. <bart@jukie.net>
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: To install:
make install make install
To run: To run:
vim -c ':NotMuch' vim -c ':NotMuch'
from vim: from vim:
:NotMuch :NotMuch
Buffer types: Buffer types:
[notmuch-folders] [notmuch-folders]
Folder list, or technically a list of saved searches. Folder list, or technically a list of saved searches.

View file

@ -11,7 +11,9 @@ syntax match nmShowMsgHeadVal /^\([^:]\+: \)\@<=.*/ contained
syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit
syntax include @nmShowMsgBodyMail syntax/mail.vim 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 nmShowMsgDescWho term=reverse cterm=reverse gui=reverse
highlight link nmShowMsgDescDate Type highlight link nmShowMsgDescDate Type