fir3net
PPS-Firenetbanner-780.5x190-30-03-17

vi / vim - Show Line Numbers

Below shows you how to display line numbers within vi.

Enable

While in VI and not in `Insert Mode`type the following to display the line numbers :

:set number 

Disable

To disable line numbers enter the following :

:set nonumber 

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001