How to replace nano with vim as the default editor. Used by crontab and other things too.
vi /etc/profile export EDITOR=${EDITOR:-/usr/bin/vim}