aboutsummaryrefslogtreecommitdiffstats
path: root/vim/after
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/syntax/c.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/vim/after/syntax/c.vim b/vim/after/syntax/c.vim
new file mode 100644
index 0000000..0f796e3
--- /dev/null
+++ b/vim/after/syntax/c.vim
@@ -0,0 +1,13 @@
+" Highlight Class and Function names
+syn match cCustomParen "(" contains=cParen
+syn match cCustomFunc "\w\+\s*(" contains=cCustomParen
+
+hi def link cCustomFunc Function
+hi def cCustomFunc gui=bold guifg=yellowgreen
+
+highlight ExtraWhitespace ctermbg=red guibg=red
+match ExtraWhitespace /\s\+$/
+autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
+autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
+autocmd InsertLeave * match ExtraWhitespace /\s\+$/
+autocmd BufWinLeave * call clearmatches()