现在的位置: 首页 > 综合 > 正文

自己写的一个类似微软VS风格的 vim c/c++语法高亮文件

2016年12月09日 ⁄ 综合 ⁄ 共 548字 ⁄ 字号 评论关闭

这个语法文件要配合一个插件叫 TagHighLight ,可以在网上下载。

这个插件是通过ctags工具产生的tag,进行语法高亮的。

" Vim color file
 set background=dark
 hi clear
 if exists(syntax_on)
 syntax reset
 endif
 let g:colors_name="vc"

 hi Comment ctermfg=28 
 hi Constant ctermfg=21
 hi Identifier ctermfg=16
 hi Statement ctermfg=21
 hi PreProc ctermfg=21
 hi Include ctermfg=21
 "hi Macro ctermfg=206
 hi Type ctermfg=21
 hi Special ctermfg=67 
 hi Class ctermfg=21
 hi Function ctermfg=88
 hi String ctermfg=196
 hi Member ctermfg=139
 hi EnumerationValue ctermfg=206
 hi EnumerationName ctermfg=21
 hi Namespace ctermfg=21
 hi DefinedName ctermfg=206
~                           

抱歉!评论已关闭.