Linux上启动vi时默认打开vim

1、check vi/vim
#which vi vim/bin/vi/usr/bin/vim
2、rm /bin/vi 或者 mv /bin/vi /bin/vi.old
【Linux上启动vi时默认打开vim】3、ln -s /usr/bin/vim /bin/vi
或者cp /usr/bin/vim /bin/vi
或者alias vi='/usr/bin/vim'


将3语句加入/etc/bashrc或/root/.bashrc末尾

    推荐阅读