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.
精彩评论