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
    github.com/easymotion/vim-easymotion
    – Maxim Kim
    Commented Aug 29, 2021 at 11:00
  • 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
    Commented Aug 29, 2021 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
    Commented Aug 29, 2021 at 12:26

2 Answers 2

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.

0

leap.nvim is the best one, very powerful to customize :)

also 100% lua

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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