-
Notifications
You must be signed in to change notification settings - Fork 4
/
vimrc
42 lines (38 loc) · 1.12 KB
/
vimrc
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
" load global configuration
if !empty(expand(glob("/etc/vimrc")))
source /etc/vimrc
else
if !empty(expand(glob("/etc/vim/vimrc")))
source /etc/vim/vimrc
endif
endif
" highlighting comments for annote notes
" comments defination: <start>@<number|range>!<space><string>
" empty: <>
" space: < >
" integer: <[0-9]+>
" string: <.*>
" start: (<empty>|<##>)
" number: (<integer>|<integer.number>)
" range: (<number-number>|<number-*>)
"
highlight cmnts ctermfg=DarkGrey
match cmnts /^\s*\(##\)\?@[0-9.*-]*! .*/
" highlights for sub heading and back references
" subheading defination: #@<number> <string>
" integer: <[0-9]+>
" string: <.*>
" number: (<integer.number>)
"
" numeral back reference defination: @{<number>}
" integer: <[0-9]+>
" number: (<integer>|<integer.number>)
"
" string back reference defination: @[<string>]
" string: <[^]]+>
"
" highlighting important text than the surrounding
" defination: @(<string>)
" string: <[^)]+>
highlight subheads ctermfg=DarkGreen
2match subheads /\(^\s*#@[0-9]\+[0-9.]*[0-9]\+ .*\|@{[0-9.]\+}\|@\[[^]]\+\]\|@[(][^)]\+[)]\)/