Error detected while processing /root/.vimrc: E492: Not an editor command: Plug 'scrooloose/nerdtree'

创建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

结束。

 

posted @ 2022-09-15 10:40  巴州夜雨  阅读(600)  评论(0编辑  收藏  举报