Hacker News new | ask | show | jobs
by prog 5653 days ago
> With Vim you have to count the number of lines ahead of the operation, which is a real speedbump.

With Vim 7.3, a new option 'relativenumber' was introduced to help with this.

From :h relativenumber

Show the line number relative to the line with the cursor in front of each line. Relative line numbers help you use the |count| you can precede some vertical motion commands (e.g. j k + -) with, without having to calculate it yourself. Especially useful in combination with other commands (e.g. y d c < > gq gw =).