开发者

Vi: Search for lines containing string1 as well as 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜