Home » Infrastructure » Unix » vi help
vi help [message #147404] Thu, 17 November 2005 09:04 Go to next message
alka205
Messages: 18
Registered: August 2005
Junior Member
In vi how do i see a line number in file.

Thanks
Re: vi help [message #147407 is a reply to message #147404] Thu, 17 November 2005 09:09 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
issue

:set nu # to show line-numbers
:set nonu # reverse the above

Re: vi help [message #147467 is a reply to message #147404] Thu, 17 November 2005 13:25 Go to previous message
nmacdannald
Messages: 460
Registered: July 2005
Location: Stockton, California - US...
Senior Member
If you are in vi, try 'control-g', that is hold down the control key and hit the g key. It will show line number and % of file you are in.
Solaris works this way.
Previous Topic: set -x
Next Topic: Problem in using uuencode to attach files in mail
Goto Forum:
  


Current Time: Thu Mar 28 16:01:06 CDT 2024