In Vim editor I opted ]I
on a function (in C++ code).
This presented a list, which says 'Press ENTER or type command to continue'.
Now to jump to an occurrence say 6, I type 6
- but this is not working.
What commands can I type in such a case, and how do I jump to Nth occurrence from this list?
Update:
Actually I tried :N (eg :6) - but the moment I type :
Vim enters Insert mode, and the colon gets inserted in the code instead.
Update
Assuming :N approach is correct, still complete uninstall and install of Vim, without any configuration, too did not help - though now typing :
does not switch Vim to insert mode.
It should present you a list like:
1: 345 my_func (int var)
2: 4523 my_func (int var)
3: 10032 my_func (3);
The second column is line numbers. Type :345 to jump to line 345.