加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Vim:使用范围突出显示C变量?

发布时间:2020-12-16 01:30:01 所属栏目:安全 来源:网络整理
导读:我想要有范围突出显示的C变量.例如.根据文件,类,全局或局部范围,变量应具有不同的着色.可能吗? 更新:外部助手(例如ctags / clang和vim脚本)是受欢迎的. 更新2:这真的应该可以使用libclang.看看Doug Gregor在这里的演讲:http://llvm.org/devmtg/2010-11/
我想要有范围突出显示的C变量.例如.根据文件,类,全局或局部范围,变量应具有不同的着色.可能吗?

更新:外部助手(例如ctags / clang和vim脚本)是受欢迎的.

更新2:这真的应该可以使用libclang.看看Doug Gregor在这里的演讲:http://llvm.org/devmtg/2010-11/我认为没有人已经做到了…或者?

http://www.vim.org/scripts/script.php?script_id=2646

从脚本网站:

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读