[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.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *