Vim Command to Show Line Numbers
Vim has a built in option to show line numbers.
I set this option in my vimrc because I always want to see line numbers.
Switch the Option On
:set number
will switch the number option on. If you want to switch it off, on the other hand, you use
:set nonumber
.