I currently use relative numbers to jump from my current line to another one.

But since typing letters is easier then numbers, i wanted to know if there is a way to replace the line numbers with letters so every line has a letter and i can press for example "space" "e" to jump to the line with "e" next to it.

And if this doesnt exist, any tips on how to create this plugin or why this is a stupid idea are appreciated.

  • 1
    Welcome to Vi/Vim SE. Well, if you ask experienced/advanced Vim users how often they need to use relative line jumps most will probably tell you "not often". There's such a powerful set of native commands for navigation/edits (e.g. text object motions) that it doesn't come up so often that they'd really need what you are requesting. I know that's not a straight answer ("Go become an advanced user!" ;) but I think it's something worth being aware of. Cheers. – B Layer Dec 16 '20 at 4:36
  • But how do they do things across multiple lines or move to a specific one? I know how to operate on paragraphs, search, or jump to matching braces, but these rarely get me precisely where i want to go. – Mars Rover Dec 16 '20 at 10:26
  • 1
    Try this github.com/easymotion/vim-easymotion – stackzebra Dec 16 '20 at 13:08
  • You say search rarely gets you precisely where you want to go...it should do precisely that. Are your regex skills decent? Either way if you sometimes get to the right line but wrong column f, F, t, T are good commands to follow up with. – B Layer Dec 16 '20 at 13:59
  • 1
    Someone just posted this FYI @MarsRover: github.com/skamsie/vim-lineletters – Martin Tournoij Dec 17 '20 at 7:09

Your Answer

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

Browse other questions tagged or ask your own question.