我想要有范围突出显示的C变量.例如.根据文件,类,全局或局部范围,变量应具有不同的着色.可能吗?
更新:外部助手(例如ctags / clang和vim脚本)是受欢迎的.
更新2:这真的应该可以使用libclang.看看Doug Gregor在这里的演讲:http://llvm.org/devmtg/2010-11/我认为没有人已经做到了…或者?
http://www.vim.org/scripts/script.php?script_id=2646
原文链接:https://www.f2er.com/bash/383717.html从脚本网站:
This set of scripts is designed to increase the number of highlighting groups used by Vim. This makes it quicker and easier to spot errors in your code. By using ctags and parsing the output,the typedefs,#defines,enumerated names etc are all clearly highlighted in different colors.
有一些截图可用于显示比较.
http://sites.google.com/site/abudden/contents/Vim-Scripts/ctags-highlighting