Clighter8 is a server-client Vim syntax highlight plugin, provides following features:
Clighter8 requires the following things:
Use a plugin manager, for example
Bundle 'bbchung/clighter8'
Clighter8 provides following commands.
Start Clighter8, highlight the code.
Stop Clighter8.
Restart Clighter8.
Show cursor informations from libclang. It's useful when debugging.
Show compiler args of current buffer.
Enable log, the path of log file is '/tmp/clighter8.log'.
Disable log.
It will start clighter8 and open source files described in compilation database and all referenced header files under current working folder of Vim. Notice that it may take long time if the compilation database is big.
Clighter8 supports compilation database, and it will load the compilation database in the current working directory. It's strongly recommended to provide a compilation database for Clighter8 to get the better result of syntax highlight. For more information about compilation database, please reference Compilation Database.
Check the Requirements and Installation, and check if a valid libclang path is given, also, you can check /tmp/clighter8.log. Remember to set g:clighter8_global_compile_args or provide the compilation database to get the better highlight result.
Clighter8 sets the compile args for each file with (g:clighter8_global_compile_args + "compilation database"). Compile args will affect the correctness of highlight.
This software is licensed under the GPL v3 license.
Note: This license does not cover the files that come from the LLVM or other third party libraries.