Re: [opensuse] help! How did EDITOR=/usr/bin/joe get set and how do I get vi back -- permanently?



Hi David,

assuming you use bash, just put an "export EDITOR=/usr/bin/vi" in your .bashrc (w/o the quotes) and eventually issue a "source $HOME/.bashrc" (again, w/o quotes) to reload the settings if you don't want to logout/login again.


HTH,
Martin




----- Original Message ----
From: David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx>
To: suse <opensuse@xxxxxxxxxxxx>
Sent: Thursday, July 31, 2008 8:37:33 AM
Subject: [opensuse] help! How did EDITOR=/usr/bin/joe get set and how do I get vi back -- permanently?

Listmates,

Gremlins in my 10.3 server again. I went to edit a crontab and to my
surprise,
a blue screen editor appeared and I had no idea how to get out of it so I just
hit ctrl+c to exit. Further investigation revealed that "joe" was now my
default editor? joe who?

[00:57 nirvana/var/backup] # set | grep EDITOR
EDITOR=/usr/bin/joe
[00:57 nirvana/var/backup] # export EDITOR=/usr/bin/vi
[00:57 nirvana/var/backup] # set | grep EDITOR
EDITOR=/usr/bin/vi
_=EDITOR

Now I have an additional piece of environment set to "_=EDITOR". I killed it

with "unset _".

More troubling is how did "EDITOR=/usr/bin/joe" get set in the first place?
This is a basic 10.3 server (Linux nirvana 2.6.22.18-0.2-default). I like vi, I
wouldn't change it.

More frustrating, this seems to be set every time I open a new shell. I exit
a
shell, su to reopen another, and the thing is set to joe again. Where do I fix
this for good? Thanks.

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx




--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] bash_history
    ... What editor is set? ... If you're using vi, try hitting ESC, x ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] disrtibution support
    ... someone had to join on from the backwoods. ... If the system is in a bad way the /bib/ed is the only editor to use. ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] disrtibution support
    ... use something friendly like MC, or pico, or joe ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] opensuse.org site updates
    ... On Sunday 29 July 2007 20:11, joe wrote: ... It's interesting that redirects to the URL I gave ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: [opensuse] opensuse.org site updates
    ... On Sunday 29 July 2007 20:31, joe wrote: ... if (restore) selectedObject.selectedIndex=0; ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)