1753644 Members
5804 Online
108798 Solutions
New Discussion

vi file

 
rajesh73
Super Advisor

vi file

when ever i open the vi file, it will automatcally open with line number

 

how to disble the line number

 

 

5 REPLIES 5
Hakki Aydin Ucar
Honored Contributor

Re: vi file

you have to find set number in .profile file and then have to command out it by put an # in front of it.

Hakki Aydin Ucar
Honored Contributor

Re: vi file

sorry I missed out this;

if you want it manually; while editing a document (and not inserting text), type the following to turn on line numbers:

:set nonumber

rajesh73
Super Advisor

Re: vi file

please find .profile

 

Hakki Aydin Ucar
Honored Contributor

Re: vi file

wrong place, first find which shell in use,

1# echo $0
-sh
it means posix for example, then go to

# vi .exrc
 just delete number , if does not work ,then change number TO nonumber

 

 

rariasn
Honored Contributor

Re: vi file

 Hi Rajesh:

 

Modify $HOME/.exrc file.

 

man ex and look for exrc

 

rgs,