SuSE Linux: All versions
The programs do not start the editor of your choice.
Before an editor is started, the environment variables EDITOR
or VISUAL
are evaluated. If these variables have not been set, the program usually starts vi.
If you use Bash as default shell, set the environment variables mentioned above in the
file ~/.bashrc
or in /etc/profile
for the whole system. For example, if you
want to work with the editor joe, insert the following lines in one of these files:
EDITOR=joe VISUAL=joe export EDITOR VISUAL
If you use the shell Tcsh, the variables must be set in the file ~/.cshrc
or
/etc/csh.cshrc
for the whole system. Insert the following lines:
setenv EDITOR joe setenv VISUAL joe