Autoload

25 views
Skip to first unread message

Scialla

unread,
Apr 15, 2025, 2:31:28 PMApr 15
to vim_use
I'm attempting to install vim-plug by placing it in the autofolder, as specified in the instructions of their git repository: `/.config/vim/autoload/plug.vim`. The file is accessible and has read permissions.
I think it gets ignored, because when opening vim, typing :PlugInstall raises the error "Not an editor command", and because I don't see it loaded in :scriptnames. I do see that the other plugins I've previously manually installed in `part/xxx/start` are present in :scriptnames, for instance `~/.config/vim/pack/dist/start/nerdtree/autoload/nerdtree.vim`

What is it missing for autoloading vim-plug?

vim 9.1, archlinux


Christian Brabandt

unread,
Apr 15, 2025, 2:42:41 PMApr 15
to vim...@googlegroups.com

On Tue, 15 Apr 2025, Scialla wrote:

> I'm attempting to install vim-plug by placing it in the autofolder, as
> specified in the instructions of their git repository:
> `/.config/vim/autoload/plug.vim`. The file is accessible and has read
> permissions. I think it gets ignored, because when opening vim, typing
> :PlugInstall raises the error "Not an editor command", and because I
> don't see it loaded in :scriptnames. I do see that the other plugins
> I've previously manually installed in `part /xxx/start` are present in
> :scriptnames, for instance
> `~/.config/vim/pack/dist/start/nerdtree/autoload/nerdtree.vim`
>
> What is it missing for autoloading vim-plug?

The vim-plug Readme mentions that you need to add the following lines
into your vimrc file:
#v+
call plug#begin()
Plug 'plugin-name'
call plug#end()
#v-

Did you do this? Otherwise, I am afraid the :PlugInstall command won't
be available.


Thanks
Christian
--
If it wasn't so warm out today, it would be cooler.

Scialla

unread,
Apr 16, 2025, 1:52:55 AMApr 16
to vim_use
That resolved the issue, thank you! I didn't realise that the section plug#begin() - plug#end() was necessary to even start or load the plugin manager.

 
Reply all
Reply to author
Forward
0 new messages