How to view line numbers in vi
When editing large files in vi or vim line numbers become very important.
This is how you turn on/off line numbers in vi or vim.
Turn on line numbers
While vi is in edit mode and not inserting type the following
:set number
Turn off line numbers
While vi is in edit mode and not inserting type the following
Tags: HowTo, Linux, vi, vim:set nonumber

























Irwan | December 28th, 2007 at 2:48 pm #
My favourite (short cut mode), :se nu
Danny | December 28th, 2007 at 3:21 pm #
Thanks man
aizatto | December 28th, 2007 at 9:47 pm #
If you want this to be permanent, you should enter it into your ~/.vimrc file. In fact go search online for .vimrc files, there are many good tips you can find in them.