创建cron任务,报错如下:
# crontab -e
no crontab for root - using an empty one
Error detected while processing /root/.vimrc:
line 2:
E492: Not an editor command: Plug 'scrooloose/nerdtree'
Press ENTER or type command to continue
解决:
1. 打开~/.bashrc,在文件中插入如下红线标记内容:
2. 生效source ~/.bashrc
结束。