Tag Archives: Not an editor command

[Solved] Error detected while processing /root/.vimrc: E492: Not an editor command: Plug ‘scrooloose/nerdtree’

Create a cron task, the error is as follows:

# 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

 

Solution:

1. Open ~/.bashrc and insert the following red line in the file:

2. Effective source ~/.bashrc

Finish.