Gentoo vim default editor

From thelinuxwiki
Revision as of 01:38, 26 February 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}