RaspberryPi change default editor

From Wurst-Wasser.net
Revision as of 15:28, 29 July 2013 by Heiko (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Solution 1

root@raspberrypi:/dev# rm /usr/bin/editor
root@raspberrypi:/dev# ln -s /usr/bin/vi /usr/bin/editor

Solution 2

do:

sudo vi /etc/profile

add:

export EDITOR="/usr/bin/vi"