Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permanently set the editor mode for Korn

Status
Not open for further replies.

goldenradium2001

Technical User
Mar 22, 2002
91
US
I'm trying to permanently set the editor mode to vi for the korn shell. I placed the line

VISUAL=$(whence emacs)

in the .profile file. Didn't work until I sourced it.

Then I placed it in the local.profile file. Still didn't work when I logged in.

This is how I verify whether or not it has worked or not: I press the Esc key to go into command mode. If I get some weird character, then I know that the editor was not set.

What should I do?

Many thanks for any help.
 
Nevermind. My problem was that I was running a GUI. So the variable only could be used on the first instance of a shell (which would be where the GUI was running on). So, obviously, the second shell that I opened in the GUI did not use the variable because I did not export it.

I hope this helps someone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top