J.S
J.S

Reputation: 47

How to navigate to last line of a series of duplicate/similar lines in vim

I have a file that has over 100k lines that start with similar words like parsing file or warning. I frequently need to bypass these line and move to texts following them.

How do I navigate to the last lines of such similarly starting lines?

The text is not segmented in paragraphs.

Upvotes: 1

Views: 43

Answers (1)

Ry-
Ry-

Reputation: 224942

You can search for lines that don’t start with things you want to ignore:

/^\(parsing file\|warning\)\@!

\@! is a negative lookahead.

Upvotes: 1

Related Questions