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?

1 Answer 1

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.
    Commented Nov 17, 2020 at 7:52

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.