vim 按语法高亮类型搜索 [英] vim search by syntax-highlighting type

查看:57
本文介绍了vim 按语法高亮类型搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 i18n 添加到现有项目(Web 应用程序)中.这涉及用对 i18n 库的调用替换静态文本的每一位.能够搜索此文本而不是依靠语法突出显示来直观地识别它会很方便.

I'm adding i18n to an existing project (web application). This involves replacing every bit of static text with calls to an i18n library. It would be convenient to be able to search for this text rather than rely on syntax highlighting to identify it visually.

在 vim 中,是否可以在文件中搜索特定突出显示类型的出现?

In vim, is it possible to search within a file for occurrences of a certain highlighting type?

类似的东西:

/[%type=Boolean]

Sub 'Boolean' with 'Comment', 'htmlTag', 或语法高亮文件中定义的任何组.

Sub 'Boolean' with 'Comment', 'htmlTag', or any group defined in your syntax highlighting file.

推荐答案

这个插件 会为你做的

这篇关于vim 按语法高亮类型搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆