简体   繁体   中英

vim search by syntax-highlighting type

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.

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.

这个插件会帮你

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM