Closed grmpfhmbl closed 5 months ago
A script file in autoload
directory is not loaded until one of its functions is called. In this case, plug#begin
. Does your configuration file has a proper plug section? i.e. plug#begin()
followed by Plug
statements and the final plug#end()
.
Ohh... I misunderstood / did not know that. Thank you. Adding a
call plug#begin()
Plug 'junegunn/vim-plug'
call plug#end()
after the download has fixed the problem. Thank you again. Closing this issue.
Plug 'junegunn/vim-plug'
This line is not necessary, because vim-plug itself is not a plugin.
I installed neovim 0.9.5 via homebrew (
brew install neovim
) and followed the installation instructions . On nvim start I get the following error:I checked if the script was downloaded automatically to
~/.local/share/nvim/site/autoload/plug.vim
. It was. Trying to run:Plug 'junegunn/vim-plug'
directly from within neovim does result in essentially the same error:Not an editor command: Plug 'junegunn/vim-plug'
Looking at the output of
:script
it does not showplug.vim
. When I move the file to~/.local/share/nvim/site/plugin/plug.vim
it at least shows up there, but I still get the same error.Is there anything obvious that I'm doing wrong? Do you have any suggestions how to debug this further?
Additional Info
Just to make sure, I also tried to install
vim-plug
on Ubuntu in Docker (docker run --rm -it ubuntu:latest
). I build neovim 0.9.5 from sourceand followed the installation instructions but got the same errors / results.