On 2011-12-20, johnw <johnw.m...@gmail.com> wrote: >> The aliases are not neccesary. I suspect root's shell is in vi mode. >> Check with set -o >> >> -Otto > > > Yes, i have this one in ~/.kshrc, > export EDITOR=vim. > delete this can solve the problem. > > thank all. >
If you still want to use vim (or any editor containing the string 'vi') in programs which use EDITOR without invoking this "feature" of the shell, create a symlink containing the string 'emacs' and use that in EDITOR instead..