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:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# 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
# 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
# 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.