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 Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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"