vim Configuring Vim Toggle line enumerating

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

To enable - type:

:set number or :set nu.

To disable - type:

:set nonumber or :set nonu.

To enable enumerating relative to the cursor location - type:

:set relativenumber.

To disable enumerating relative to the cursor location - type:

:set norelativenumber.

Note: To change whether the current line shows the actual line number or 0, use the :set number and :set nonumber commands while the relativenumber attribute is active.



Got any vim Question?