Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neovim error: E492: Not an editor command: PlugInstall

Tags:

neovim

OS: Ubuntu 18.04.3 LTS

I just installed neovim using sudo apt-get install neovim and added the folder and file ~/.config/nvim/vim.init. At this moment the file has no content, but when I open up nvim and type :PlugInstall I get error: E492: Not an editor command: PlugInstall. I am clueless, what is going wrong?

like image 373
robtot Avatar asked Feb 11 '20 14:02

robtot


2 Answers

I think you are trying to use vim-plug without previously installing it.

like image 153
Tupteq Avatar answered Oct 17 '22 17:10

Tupteq


I changed my plug#begin to

call plug#begin('~/.local/share/nvim/site/autoload/plug.vim')  

and it worked for me now

like image 44
Spike Vinz Avatar answered Oct 17 '22 16:10

Spike Vinz