Novell is now a part of Micro Focus

Changing the Default Text Editor Used in SLED 10

Novell Cool Solutions: Tip
By Ricardo da Costa

Digg This - Slashdot This

Posted: 14 Jun 2007


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.


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.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates