1833294 Members
2930 Online
110051 Solutions
New Discussion

change VI Editor Setting

 
SOLVED
Go to solution
Julian Snype
Advisor

change VI Editor Setting

 
6 REPLIES 6
Michael Tully
Honored Contributor

Re: change VI Editor Setting

Use set -o

To see the current settings:
$ set -o
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: change VI Editor Setting

Hi,
.exrc is the file in each users home directory where you can put in the variable you want to set for vi editor for that user.
Julian Snype
Advisor

Re: change VI Editor Setting

I a little confuse about $set -0 and .exrc file.

I tried this command and I'm getting
"not found condition". I cannot find any ref to SET. I have no home directories setup since this is my 1st time boot.

I'm working in single user mode. I was working with $TERM command to get vi to recognize my terminal(thats not working).
whenever I edit nfsconf in vi, i'm still in the [read only mode]

All I want to do is change line 1 line in the nfsconf file - NFS_SERVER=1 to '0'.
I sure could use some help with this.

thanks
Michael Tully
Honored Contributor
Solution

Re: change VI Editor Setting

The default is vi, so to make it simple, seeing you in single-user mode. You must have /usr and /var mounted in order to use vi.

# mount /usr
# mount /var

# vi filename

Make your changes
Save the file using:
:wq!

The file will be saved. The permissions of the file prevent you changing it by default. Using the wq! is writing to the file, exiting and the ! overwrites the read only nature of the file.
Anyone for a Mutiny ?
Julian Snype
Advisor

Re: change VI Editor Setting

Michael,

Excellent! It worked! I have reset NFS_SERVER=0
I was trying the same command and it didn't work.

Simple worked.....

I still have a problem. When I tried to boot normal mode.
I'm still getting a "busy" or "wait" condition the NFS Client Subsystem /NFS server not responding. I went back int single mode and the change that I made had worked.
Are there any other files that you can think of that I should change besides "nfsconf" to get pass this?

Thanks again Michael

Bharat Katkar
Honored Contributor

Re: change VI Editor Setting

also change NFS_CLIENT=1 to NFS_CLIENT=0 along with NFS_SERVER=1 to NFS_SERVER=0 in /etc/rc.config.d/nfsconf


You need to know a lot to actually know how little you know