0

Is it possible to make Vim show line numbers relative to the screen? Not to the beginning of the file, and not to the current position of the cursor, but relative to the first line that is currently being displayed? So that 12G, 40G, etc. could be used as a more fine-grained alternative to H, M, and L?

3

Not without patching the source (source: the only relevant options are number and relativenumber).

I do recall some recent questions about using signs to create custom numbers. If anyone has those links, feel free to add them here.

1
  • Thank you. I'm not going to try and patch Vim, but if anyone has those links, I'd be interested. – Kamil S. Nov 17 '20 at 7:52

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.