5

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.) – bhathiya-perera Jul 11 at 17:51
5

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.

| improve this answer | |

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.