Linux - How to config vi editor to show line numbers, Vim Text Editor hide line numbers
How to config vi editor to show line numbers
To display line numbers of a file in vi text editor, type any one of the following command in vim editor
:set number :set nu
To turn off line number again enter the same command:
:set nu!
If you need number every time you start vi or vim editor, append following line to your ~/.vimrc file:
set number
Save and close the file.
Jump to particular line number from a shell prompt, enter:
$ vi +linenumber file.c $ vi +300 initlib.c
The topic on Linux - How to config vi editor to show line numbers is posted by - Malu
Hope you have enjoyed, Linux - How to config vi editor to show line numbersThanks for your time