commit 07d9a48dbd5ed959baf7405f45b30c69250c99ad
parent c959a444ca78493742b4e3531f324db3e16ef8a3
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Fri, 24 Jul 2015 20:48:23 -0700
Vim: Add function to deal with highlighting special symbols
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/vimrc b/vimrc
@@ -218,6 +218,16 @@ if s:color == 'molokai'
hi Folded ctermbg=none ctermfg=59
endif
+" fix highlighting of special symbols
+function! C_Syntax()
+ syntax match _Operator "[-+&|<>=!\*~.,:%&^?]"
+ syntax match _Operator "/ \|/="
+ syntax match _Semicolon "[;]"
+ hi link _Operator Operator
+ hi _Semicolon ctermfg=red
+endfunction
+autocmd! BufRead,BufNewFile,BufEnter *.{c,cpp,h,hpp,} call C_Syntax()
+
" status line{{{1
function! InsertStatuslineColor(mode)
if a:mode == 'i'