I've installed node plugin, which give possibility to display all lines that contain the keyword under the cursor using
[I hotkey. It looks like this:
Is there possibility to jump to them?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
That feature is built-in, it has nothing to do with that "node" plugin. It's called "include search" and you can read all about it in
You have a few ways to jump to an item in the list:
:136<CR>will jump to line 136 but it is obviously restricted to the current buffer and you only jump to the line, not the match,
:ijump 3 <C-r><C-w>will jump to the third item in the list, across buffers,
3[<C-i>has the same effect as above.
But those methods aren't particularly easy on the fingers.
You can create a simple custom mapping to make it a lot smoother:
nnoremap [I [I:ijump <C-r><C-w><S-Left><Left>
Here is a simplistic demo:
There's also this gist of mine that overrides the native
[I (among others) to use the much more powerful quickfix list/window: