[Leaf-user] Default editor in Bering
Hi, I would like to make vi the default editor in Bering. Under Dachstein I simply added "export EDITOR=e3vi" to /etc/profiles to get the vi mode. This doesn't seem to work in Bering. Is there another variable I need to set? Thanks, Stephen -- [EMAIL PROTECTED] www.spl-linux.com ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Default editor in Bering
Hi Stephen, you wrote > Hi, > > I would like to make vi the default editor in Bering. Under Dachstein I > simply added "export EDITOR=e3vi" to /etc/profiles to get the vi mode. > This doesn't seem to work in Bering. Is there another variable I need to > set? The Editor is exactly the same but there is a default editor set in /bin/edit makeing the whole profile variable Editor not working ;) modify the file /bin/edit and comment the line # Set editor to use: EDITOR=/bin/e3 out set EDITOR in profile and its works. Greetings Eric Wolzak (member of the "Bering Crew " :) ) http://leaf.sf.net/devel/ericw/ http://leaf.sf.net/devel/jnilo ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Default editor in Bering
* Stephen Lee ([EMAIL PROTECTED]) wrote: > Hi, > > I would like to make vi the default editor in Bering. Under Dachstein I > simply added "export EDITOR=e3vi" to /etc/profiles to get the vi mode. > This doesn't seem to work in Bering. Is there another variable I need to > set? You may add the following lines (in addition to the one you described in /etc/profile) to the top of the /bin/edit file: . /etc/profile EDITOR=${EDITOR:=/bin/e3} Then delete the EDITOR=/bin/e3 line below. You can then change the editor whenever you want through the lrcfg menu by editing the /etc/profile file. Or, you can just change it in /bin/edit directly if it is a one-time proposition. --- Chad Carr [EMAIL PROTECTED] --- ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Default editor in Bering
* Eric Wolzak ([EMAIL PROTECTED]) wrote: > Hi Stephen, you wrote > > > Hi, > > > > I would like to make vi the default editor in Bering. Under Dachstein I > > simply added "export EDITOR=e3vi" to /etc/profiles to get the vi mode. > > This doesn't seem to work in Bering. Is there another variable I need to > > set? > > The Editor is exactly the same but > there is a default editor set in /bin/edit > makeing the whole profile variable Editor not working ;) > > modify the file /bin/edit and comment the line > # Set editor to use: > EDITOR=/bin/e3 > > out set EDITOR in profile and its works. I am laughing at myself. I did not realize that /bin/edit already had sourced /etc/profile. --- Chad Carr [EMAIL PROTECTED] --- ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user