Gentoo vim default editor

From thelinuxwiki
Jump to: navigation, search

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}