Author Topic: Relative Line numbers in the margin  (Read 207 times)


  • Community Member
  • Posts: 40
  • Hero Points: 0
Relative Line numbers in the margin
« on: July 18, 2020, 10:49:33 pm »
It would be good to have option to view the relative line number in addition to the absolute line numbers. The relative line numbers are with respect to the current cursor position. Hence the relative line number at the current cursor position is 0 while 10 lines above and below will both have value 10.
How is this useful: Say we are in the VIM emulation mode and operating near bottom of a huge file. If my current cursor is at line 9800 and I need to go to line 9773, I can either type :9773 or 27k - 5 keystrokes vs constant 3 keystrokes.
I am showing an example with few relative line numbers shown (only 5 shown for brevity).