cSyntaxAfter : Operator highlighting for C-like languages and more
| script karma
Downloaded by 854
Comments, bugs, improvements
script versions (upload new version)
|This plugin was initially created for codeblock_dark color theme (vimscript #3266) to highlight operators (+ - / * = <> () and others) in C-like languages. Why it's needed? Well, by default vim doesn't do that. After switching from Code::Block to vim I got really missed it.
Then the plugin grew into something bigger. I started to use it to unify overal syntax highlighting for C-like languages.
It's possible to extend the plugin tu support other C-like languages (Java, Go etc).
For example for Object-C first check you don't have "objc" in autocmd in vimrc.
Then create new objc.vim file in <cSyntaxAfter_path>/after/syntax/ and add:
Then add new rules to syntax highligting, for example to highlight [ ] brackets
as operator and not constant add:
syntax match _Operator display "[\[\]]"
hi link _Operator Operator
|1. Extract to ~/.vim/
2. Put this into your .vimrc:
Click on the package to download.
ip used for rating: 22.214.171.124