Starting with Bering-uClibc 2.1, the available text editors has been consolidated and setting up the preferred editor has been simplified.
All editors are based on e3
, which provides four
emulation modes:
Table 10.1. Available editor modes in Bering-uClibc
e3ne | nedit mode |
e3vi | vi mode |
e3em | emacs mode |
e3ws | wordstar mode |
The default editor for lrcfg
is
edit
. edit
is a small shellscript
that reads the environment variable 'EDITOR' and calls e3 with the
chosen emulation mode.
To change the editor emulation mode directly , modify 'EDITOR'
in /etc/profile
.
To change it via lrcfg run lrcfg:
LEAF configuration menu 1 ) Network configuration 2 ) System configuration 3 ) Packages configuration b) Back-up a package c) Back-up your LEAF disk h) Help q) quit ---------------------------------------------------------------------------- Selection:
select 2 ) System configuration
System configuration menu 1) Master LRP settings (/etc/lrp.conf) 2) POSIXness mail settings (/etc/POSIXness.conf) 3) File system mounts (/etc/fstab) 4) Lowest level boot-up configuration (/etc/inittab) 5) System wide profile (/etc/profile) 6) Ports root is allowed to login to (/etc/securetty) 7) System logging configuration (/etc/syslog.conf) 8) Service name to number translation (/etc/services) 9) Local timezone TZ setup (/etc/TZ) q) quit ---------------------------------------------------------------------------- Selection:
select 5) System wide profile
and change the EDITOR setting to your preferred editor:
#Set the desired editor (e3ne, e3em, e3pi, e3vi, e3ws) export EDITOR=e3ne
In either case the desired editor mode is available with the next login.
Don't forget to backup/save etc.lrp.
You can always use another editor mode from commandline calling it with the proper symlink - see table above.