2009/10/1 Arthur D. <spinal...@mail.ru>:
>>> I gonna bet you added "magic" line to your sudoers previously or make
>>> some other
>>> crutches to make it work:
>>> Defaults env_keep="EDITOR"
>>
>> You lost that bet.
>
> Proof?
>
>> Section 8.c of the Gentoo Handbook (called System Information) advises
>> you to edit /etc/rc.conf to change your preferences.
>
> Daniel, I read the book carefully and did all that was need. Also I
> commented
> #EDITOR="/bin/nano"
> And set
> EDITOR="/usr/bin/vim"
> there
> Any more suggestions?
>

I'm using a 4 years old system, and if I change that line, log out and
in again, it changes the env variable and everything works (that means
the behavior is probably caused by your configuration). If visudo is
still using that configuration, maybe that's because some
configuration file has precedence over environment variables. In that
case, you gotta find that file and change it.

Not an easy task, anyway... I just did an "grep -r /bin/nano" in /etc.
LOL, I know there's a better way, I'm just too lazy to look for it...

-- 
Daniel da Veiga

Reply via email to