HOME RESTORATION DIGITAL PHOTOS DIGITAL BOOKS PROFESSIONAL HISTORY CONTACT ME


vi - line numbering

As vim starts without line numbering and when changing large configuration files it is much easier if they are visible. This can be done on an ad-hoc basis with :set number from within vi or for a permanent fix do the following from the user account that you use (in my case root).

root@linuxsvr01:~# touch .vimrc

In the empty file add the following

root@linuxsvr01:~# vi .vimrc
set number

That's it, every time vi is opened line numbers are down the left.