RaspberryPi change default editor

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