Unter Gentoo alle möglichen Default-Editoren auflisten und vim als Standard setzen:
host01 ~ # eselect editor list Available targets for the EDITOR variable: [1] /bin/nano [2] /usr/bin/ex [3] /usr/bin/vi [ ] (free form) host01 ~ # eselect editor set 3 Setting EDITOR to /usr/bin/vi ... Run ". /etc/profile" to update the variable in your shell. host01 ~ # . /etc/profile