-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtpp.vim
More file actions
33 lines (26 loc) · 1.24 KB
/
Copy pathtpp.vim
File metadata and controls
33 lines (26 loc) · 1.24 KB
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
nmap <space> :source tpp.vim<cr>:w<cr>:make preview<cr>
syn match basicLanguageKeywords "^[ \t]*grap[ \t]"
syn match basicLanguageKeywords "^[ \t]*item[ \t]"
syn match basicLanguageKeywords "^[ \t]*ite2[ \t]"
syn match basicLanguageKeywords "^[ \t]*text[ \t]"
syn match basicLanguageKeywords "^[ \t]*part[ \t]"
syn match basicLanguageKeywords "^[ \t]*bash[ \t]"
syn match basicLanguageKeywords "^[ \t]*syno[ \t]"
hi def link basicLanguageKeywords Statement
"syn region slidesCode start="code" end="$"
"hi def link slidesCode Constant
syn region slidesCode matchgroup=basicLanguageKeywords start="^[ \t]*code[ \t]" end="$"
syn region slidesCode matchgroup=basicLanguageKeywords start="^[ \t]*titl[ \t]" end="$"
syn region slidesCode matchgroup=basicLanguageKeywords start="^[ \t]*bash[ \t]" end="$"
syn region slidesCode matchgroup=basicLanguageKeywords start="^[ \t]*syno[ \t]" end="$"
hi def link slidesCode Constant
syn match slidesColumn "^[ \t]*col[ \t]*"
hi def link slidesColumn PreProc
"syn region slidesColumn matchgroup=basicLanguageKeywords start="^[ \t]*col[ \t]*$" end="\%$"
"hi def link slidesColumn Error
syn match slidesComment "^[ \t]*#.*"
hi def link slidesComment Comment
set noexpandtab
set sw=5
set ts=5
"au BufNewFile,BufRead *.tpp so tpp.vim