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.

Vivian De Smedt
  • 16,336
  • 3
  • 18
  • 37
JaDogg
  • 417
  • 4
  • 12
  • 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 Jul 11 '20 at 17:51

1 Answers1

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.

romainl
  • 40,486
  • 5
  • 85
  • 117