vimtricks.wiki Concise Vim tricks, one at a time.

How do you show relative line numbers in Vim?

Answer

set relativenumber

Explanation

Use set relativenumber (or set rnu) to show line numbers relative to the cursor position. Combine with set number for hybrid numbering.

Next

How do I visually select a double-quoted string including the quotes themselves?