开发者

vim search by syntax-highlighting type

I'm adding i18n to an existing project (web application). This involves repl开发者_StackOverflow中文版acing 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.

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

Something like:

/[%type=Boolean]

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


This plugin will do it for you


Take a look at the answer I gave here:

Vim search in C/C++ code lines

I think my :SearchInside command will do what you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜