root用户VI没颜色

root用户VI没有颜色

当以root身份登录系统时,使用的是vi而非vim,
所以语法不会高亮显示。

简洁的解决方案如下所示:
su root
mv /bin/vi /bin/vi.old
ln -s /usr/bin/vim /bin/vi