SUSE Conversations


Changing the Default Text Editor Used in SLED 10



By: rgdacosta

June 14, 2007 12:30 pm

Reads:8,119

Comments:0

Score:Unrated

Print/PDF

Problem:

Not quite a fan of vi? Whilst it is important to know, you are not limited to using vi when using commands such as edquota, crontab, visudo, etc. You can change the default editor used if you like. The variable VISUAL controls the editor and all you need to do is set it to the path of your favorite editor.

Example:

To change the editor from vi to joe you would use:

export VISUAL=/usr/bin/joe

The above command sets this variable for the current session only.

echo "export VISUAL=/usr/bin/joe" >> ~/.profile

The above command sets this variable for future logins.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Categories: Uncategorized

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

Comment

RSS