SemanticHL : Semantic highlighting for C/C++ (v1.0 20140521)
| script karma
Downloaded by 1264
Comments, bugs, improvements
script versions (upload new version)
|Adds semantic highlighting to C/C++ symbols
Assigns the color of a C/C++ symbol using the hash of the symbol string as a key to a color table that spans the line between minimum and maximum hue. Color table customizable by editing script. Behavior of color assignment customizable by editing hash function.
- The 'define' in a '#define' preprocessor definition may be incorrectly colorized.
- The semantic parsing algorithm is approximately O(n). Where 'n' is the number of non-syntax symbols in a buffer. Large files may be slow to process on your machine.
- Only available in gvim.
Vim home directory is ~/.vim
1. Copy 'cpp_sem.vim' and 'c_sem.vim' to ~/.vim/syntax.
2. Copy 'semantic.vim' to ~/.vim/ftdetect
Semantic highlighting will be enabled automatically for files with c/cpp/h/hpp extensions.
Click on the package to download.
ip used for rating: 18.104.22.168
||Removed semantic highlight parsing from autocmd hooks: CursorMovedI and CursorMoved. This is to prevent noticeable UI performance degradation while editing some buffers on some systems.
||Latest and greatest.