From 3074c36136ff848b02755aa6806f7d392f04facc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 11 Apr 2015 22:02:44 -0700 Subject: 1049 --- cpp/vimrc.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cpp/vimrc.vim b/cpp/vimrc.vim index 6dd7f18e..d0992eb2 100644 --- a/cpp/vimrc.vim +++ b/cpp/vimrc.vim @@ -11,6 +11,12 @@ function! HighlightTangledFile() highlight traceAbsent ctermfg=darkred endfunction call HighlightTangledFile() -autocmd BufReadPost,BufNewFile 0* call HighlightTangledFile() +autocmd BufRead,BufNewFile 0* call HighlightTangledFile() set isk+=- + +" scenarios inside c++ files +syntax match muComment /#.*$/ | highlight link muComment Comment +syntax keyword muControl reply jump jump-if jump-unless loop loop-if loop-unless break-if break-unless | highlight link muControl Identifier +syntax match muAssign "<-" | highlight link muAssign SpecialChar +syntax match muAssign "\" -- cgit 1.4.1-2-gfad0