Gentoo修改文件默认编辑器
 
 
需要修改/etc/rc.conf文件:

#EDITOR=”/bin/nano”
EDITOR=”/usr/bin/vim”
#EDITOR=”/usr/bin/emacs”

选择自己的习惯的编辑器

照这样做了,用crontab -e测试了一下,好像没改过来,

然后用set|grep EDITOR看了一下

EDITOR=/bin/nano

想想修改.bashrc应该可以的吧

就将 EDITOR=/usr/bin/vim

添加到.bashrc里,重启一个终端,

crontab -e

是用vim 打开的

Gentoo修改文件默认编辑器

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.