To display line numbers in the vi editor, you can type this from within vi:
:set number
You can abbreviate it : set nu
To remove the line numbers you can type:
:set nonu

To display line numbers in the vi editor, you can type this from within vi:
:set number
You can abbreviate it : set nu
To remove the line numbers you can type:
:set nonu