RaspberryPi change default editor

From Wurst-Wasser.net
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"