开发者

Vi: Search for lines containing string1 as well as string2

开发者 https://www.devze.com 2023-02-10 00:19 出处:网络
I know how to search开发者_JS百科 for a single expression. How do I combine two? /string1 & string2

I know how to search开发者_JS百科 for a single expression. How do I combine two?

/string1 & string2


You'd use .*string1\&.*string2

http://vim.wikia.com/wiki/Search_patterns has many tips, at least for vim.

0

精彩评论

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

关注公众号