Vim 9 · Macros and settings

Show relative line numbers

Show distances from the cursor line, which helps with motions like 5j.

:set relativenumber

Official Vim 9 documentation

More macros and settings commands

All macros and settings commands · Vim 9 cheatsheet

Was this page helpful?