File: notmuch-show.vim

package info (click to toggle)
notmuch 0.3.1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,240 kB
  • ctags: 1,234
  • sloc: ansic: 5,246; cpp: 2,868; lisp: 2,370; sh: 1,278; python: 1,210; makefile: 124; csh: 2
file content (25 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
" 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

" 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
highlight link nmShowMsgDescTags String

highlight link nmShowMsgHeadKey  Macro
"highlight link nmShowMsgHeadVal  NONE

highlight Folded term=reverse ctermfg=LightGrey ctermbg=Black guifg=LightGray guibg=Black