Vi editor - Line numbers

To display line numbers, enter the following in Vi/Vim:

:set number

or

:set nu

To remove the line numbers, do;

:set nu!

Share this post