aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/notmuch-show.vim
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2014-06-19 12:13:40 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2014-06-19 12:13:40 +0200
commit5e7f909bb4f66bba60d3c4ff31df012d21d18699 (patch)
tree517f04b7eefa6ac93884e607bbb41e5355ab2902 /vim/syntax/notmuch-show.vim
parent875c561f9a2b264f7f48896396eeb644611df62f (diff)
downloaddotfiles-5e7f909bb4f66bba60d3c4ff31df012d21d18699.tar.gz
dotfiles-5e7f909bb4f66bba60d3c4ff31df012d21d18699.tar.bz2
Some files from the laptop.
Diffstat (limited to 'vim/syntax/notmuch-show.vim')
-rw-r--r--vim/syntax/notmuch-show.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/vim/syntax/notmuch-show.vim b/vim/syntax/notmuch-show.vim
new file mode 100644
index 0000000..c3a98b7
--- /dev/null
+++ b/vim/syntax/notmuch-show.vim
@@ -0,0 +1,24 @@
+" notmuch show mode syntax file
+
+syntax cluster nmShowMsgDesc contains=nmShowMsgDescWho,nmShowMsgDescDate,nmShowMsgDescTags
+syntax match nmShowMsgDescWho /[^)]\+)/ contained
+syntax match nmShowMsgDescDate / ([^)]\+[0-9]) / contained
+syntax match nmShowMsgDescTags /([^)]\+)$/ contained
+
+syntax cluster nmShowMsgHead contains=nmShowMsgHeadKey,nmShowMsgHeadVal
+syntax match nmShowMsgHeadKey /^[^:]\+: / contained
+syntax match nmShowMsgHeadVal /^\([^:]\+: \)\@<=.*/ contained
+
+syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit
+syntax include @nmShowMsgBodyMail syntax/mail.vim
+
+silent! syntax include @nmShowMsgBodyGit syntax/notmuch-git-diff.vim
+
+highlight nmShowMsgDescWho term=reverse cterm=reverse gui=reverse
+highlight link nmShowMsgDescDate Type
+highlight link nmShowMsgDescTags String
+
+highlight link nmShowMsgHeadKey Macro
+"highlight link nmShowMsgHeadVal NONE
+
+highlight Folded term=reverse ctermfg=LightGrey ctermbg=Black guifg=LightGray guibg=Black