How can I search 3 lines at a time in vi editor?

How can I search 3 lines at a time in vi editor?

I was wondering how we can do this. That is, look for 3 lines at a time in vi like me: :/xyzin command mode.

How can I add 2 more lines so that the cursor stops at a line that has ever been found among three, and if we click n, it stops at a line that will be found second among three?

I suppose this would be very useful in real time.

+5
source share
1 answer

(|), (.. , ):

/string1\|string2\|string3

, (:) . (/); .

+10

All Articles