How to show line number in vi / vim?
Answer:
In vi, type the following to display the line number
:set number
To hide the line number
:set nonumber
To set the line number option permanently, append into ~/.vimrc
echo ":set nonumber" >> ~/.vimrc
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to show line number in vi / vim?
Answer:
In vi, type the following to display the line number
:set number
To hide the line number
:set nonumber
To set the line number option permanently, append into ~/.vimrc
echo ":set nonumber" >> ~/.vimrc