Christian Dysthe grabbed a keyboard and wrote:
> 
> I would like to globally change the default editor in Mandrake 9.1 (vim I
> think) to another one. How can that be done? I have been looking around and
> been asking on IRC, but I am not able to make it work. To be clear: I
> *never* want vim to open any file. I want another editor to simply "replace"
> vim by default. 

In your .profile (.bash_login or whichever you have for setting up your 
various variables and things when you login), put the following lines:

export EDITOR=joe
export VISUAL=$EDITOR

Replace "joe" with your editor of choice.  The reason for putting both 
lines above is that some programs use $EDITOR and some use $VISUAL to see 
which editor you want.  If you want to have a different "visual" editor in 
place, then set $VISUAL to that editor.  I always want the same editor no 
matter which is being used by the program in question so I set them this 
way.

                  --Dave
-- 
      David Guntner      GEnie: Just say NO!
 http://www.akaMail.com/pgpkey/davidg or key server
                 for PGP Public key


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to