Many operations in Vim can be executed over a given number of lines. For example, d3j will delete the current line, plus the 3 below it. You may find yourself reading the line numbers and then subtracting two numbers in your head to decide how many lines to execute a command over. But there is a better way.

Vim allows the line numbers to show relative to current cursor position with :set relativenumber. Here’s a short demonstration:

With relativenumber enabled, one can simply glance at the number above or below the current line, rather than do mental math.

Since Vim 7.4, you can also enable set number at the same time so instead of your current line number showing 0 it will show the normal, absolute line number. Therefore, I recommend you upgrade to Vim 7.4 and use the following configuration:

set relativenumber
set number