system wide default editor
Florian Diesch
diesch at spamfence.net
Wed Sep 2 22:22:06 UTC 2009
Jay Daniels <tux at myt60.net> writes:
> When I create a cron job with crontab -e, a pico looking ( nano whatever
> name ) pops up as my editor.
>
> How do I change the default editor in Ubuntu Hardy to vi or emacs -nw.
Most programs use the environment variables $EDITOR or $VISUAL if they
are defined and "editor" otherwise. You can configure "editor" using
sudo update-alternatives --config editor
> in the world would anyone want to use this 1st grade dos looking
> text editor if they installed Linux?
Because Emacs isn't installed by default and vi just beeps. ;-)
Florian
--
<http://www.florian-diesch.de/linux/asciipinguine.html>
More information about the ubuntu-users
mailing list