简体   繁体   English

在gvim中搜索,忽略特殊字符

[英]Search in gvim ignoring special characters

How do I search for a string in gvim ignoring all special/regex characters in it ? 如何在gvim中搜索字符串而忽略其中的所有特殊/正则表达式字符?

Something like: 就像是:

/<It doesn't matter what is here>

You can start your search string with \\V to turn off regex searching: 您可以使用\\V开头搜索字符串以关闭正则表达式搜索:

/\V<It doesn't matter what is here>

This is very nomagic mode (the opposite of very magic mode). 这是非常不可思议的模式(与非常不可思议的模式相反)。 See :h \\V . 参见:h \\V

Just note that you still need to escape \\ with \\\\ . 请注意,您仍然需要使用\\\\转义\\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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