How can I get the relative number feature on old Vim versions (7.2 to be exact in my scenario) ?

I cannot install a newer version because other people are also using Vim on the same server.

  • Plugin specified in accepted answer still works for modern versions as well. (Very useful if you want normal numbers and relative numbers displayed side by side.)
    – JaDogg
    Commented Jul 11, 2020 at 17:51

1 Answer 1


Relative numbers were officially added to Vim with the 7.3 release.

If you can't update Vim or can't compile your own you will need to install a plugin like DrChip's RltvNmbr. Maybe there are others. Note that it requires the +signs feature which you may or may not have.

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.