On Wed, Dec 21, 2011 at 10:41 AM, Stuart Henderson <[email protected]>
wrote:
> On 2011-12-20, johnw <[email protected]> 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..

Or:

EDITOR=vi
VISUAL=not_emacs

$ ls -al /usr/bin/not_emacs
lrwxr-xr-x  1 root  wheel  2 Dec 21 11:03 /usr/bin/not_emacs -> vi

Reply via email to