Vim-plug: Not an editor command: PlugInstall

Created on 5 Oct 2020  路  4Comments  路  Source: junegunn/vim-plug

Explain the problem here ...



  • Type:

    • [ ] Bug

    • [ ] Enhancement

    • [ ] Feature Request

    • [ ] Question

  • OS:

    • [ ] All/Other

    • [ ] Linux

    • [ ] OS X

    • [ ] Windows

  • Vim:

    • [ ] Terminal Vim

    • [ ] GVim

    • [ ] Neovim

duplicate neovim

Most helpful comment

Is step 3 in your init.vim or within stdpath('data')?

Yes i had it all wrong. I finally manage to solve it been careful with the path and the location of the ini.vim file. I put it next to the plugin folder and did it this way.

Screenshot 2020-10-07 031145

The current path is this one:

Screenshot 2020-10-07 031258

All 4 comments

Same error, I'm currently using windows and idk why it happens. The path i have is

I do the following:
1) Run the Windows NeoVim

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni "$env:LOCALAPPDATA/nvim-data/site/autoload/plug.vim" -Force

2) Check the path
C:UsersalegaAppDataLocalnvim-datasiteautoload

3) Create a file to put the following code

"
call plug#begin(stdpath('data').'/plugged')

Plug 'dikiaap/minimalist'

call plug#end()

set t_Co=256
syntax on
colorscheme minimalist
"

4) Try tu run: PlugInstall
5) The error pops up -> E492: Not an editor command: PlugInstall

Is step 3 in your init.vim or within stdpath('data')?

Is step 3 in your init.vim or within stdpath('data')?

Yes i had it all wrong. I finally manage to solve it been careful with the path and the location of the ini.vim file. I put it next to the plugin folder and did it this way.

Screenshot 2020-10-07 031145

The current path is this one:

Screenshot 2020-10-07 031258

No comments from @Mryehua to explain his situation.
@Alegarciy issue is resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

meain picture meain  路  3Comments

bmcilw1 picture bmcilw1  路  3Comments

leeyunlong001230 picture leeyunlong001230  路  4Comments

mastertinner picture mastertinner  路  4Comments

RubenVerborgh picture RubenVerborgh  路  3Comments