0

With some browser plugins like vimium, one can press a key and all links on the open webpage get labeled with a short combination of letters. If you then type that combination, the corresponding link is clicked.

Is there a plugin for (neo)vim that can do that?

E.g, if you typed a normal mode command, the visible text would get labeled, and then you could press something like k t to get to the "any instance" part of the document below. Here is a mock-up of what that might look like:

labels for text positions

Where the file open in vim would look like this:

same file without labels

3
  • 2
  • 1
    There are a number of plugins that do something similar, I believe. Easymotion is the first one that comes to mind for me, too. Also, please tell me you generated that mockup in some scripted way and not by hand. ;)
    – B Layer
    Aug 29 '21 at 11:13
  • Thanks, couldn't find it for the life of me. One of you should write this as an answer, so I can accept it.
    – con-f-use
    Aug 29 '21 at 12:26
1

One of most known plugins that does it -- vim-easymotion

You might also check vim-sneak for a similar but a bit different approach to the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.