解决 Error detected while processing /root/.vimrc:
由于linux系统默认样式读代码相当难过: 于是在 ~/.vimrc 里添加了 colorscheme desert
结果再使用 crontab -e 时就报错:
Error detected while processing /root/.vimrc:
line 1:
E185: Cannot find color scheme desert
Press ENTER or type command to continue
crontab: no changes made to crontab
不错的解决方法:
vim /root/.bashrc
添加:
export EDITOR=/usr/bin/vim
退出当前用户, 再进入, 问题解决