Reputation: 23
How to locate the second url
in the following example in vim? (Suppose url
is the first occurrence in each section)
[section1]
url=
[section2]
url= #target search result
Upvotes: 2
Views: 129
Reputation: 196751
The most idiomatic way to find the first bar
after the first foo
would be:
/foo/;/bar/<CR>
You can use the same method to find the second url
:
/url/;/url/<CR>
or:
/url/;//<CR>
for short.
In this specific case you could also do:
/url<CR>
n
Upvotes: 2