From: Bart Trojanowski Date: Sun, 22 Nov 2009 04:59:01 +0000 (-0500) Subject: vim: highlight []-blocks in search view X-Git-Tag: 0.1~313^2~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e67ad108c80424a1138e9d2eea37844977fc1eff;p=notmuch.git vim: highlight []-blocks in search view --- diff --git a/vim/syntax/notmuch-search.vim b/vim/syntax/notmuch-search.vim index 832b2b84..3c2b2729 100644 --- a/vim/syntax/notmuch-search.vim +++ b/vim/syntax/notmuch-search.vim @@ -9,6 +9,7 @@ syntax region nmSearchFrom start='\]\@<=' end='|' oneline contained syntax match nmSearchCountZero '0/\(\d\+\)' contained syntax match nmSearchCountSome '\([1-9]\d*\)/\(\d\+\)' contained syntax match nmSearchCountAll '\(\d\+\)/\1' contained +syntax match nmSearchSquareBracketText '\(\[\w\+\]\)' syntax match nmSearchTags /([^)]\+)$/ highlight link nmSearchDate Statement @@ -17,6 +18,7 @@ highlight link nmSearchCountZero Function highlight link nmSearchCountSome Special highlight link nmSearchCountAll Type highlight link nmSearchFrom Include +highlight link nmSearchSquareBracketText Special highlight link nmSearchTags String highlight CursorLine term=reverse cterm=reverse gui=reverse