Suppose we have the following very simple file:
1 x 3 x
x 3 x 1
Now I'd like to have a pattern that matches all lines containing both 1 and 3. The order and position should not matter.
(Note that I used a very simple file on purpose. The file could contain many more lines, and the ”words“ could be words like ”hello“ and ”world“.)
/\&is for. Now I do. Which is weird, because this is essentially identical to the "Peter and Bob" example given in the:help. Still, reading your answer, it finally clicked in my brain. Thanks! +1 – Rich May 14 '19 at 09:52it works a bit like && in most coding language:is brilliant! – Maxim Kim May 15 '19 at 08:20