Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an editor command: PlugInstall #1030

Closed
8 tasks
RaCs5 opened this issue Oct 30, 2020 · 15 comments
Closed
8 tasks

Not an editor command: PlugInstall #1030

RaCs5 opened this issue Oct 30, 2020 · 15 comments

Comments

@RaCs5
Copy link

RaCs5 commented Oct 30, 2020

I need help I'm using vim-pug on Windows 10 and it won't let me use: PlugInstall I get error E492: Not an editor command: PlugInstall
this is the configuration that I put

call plug#begin('~/AppData/local/nvim/autoload')
2 Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries', 'for': 'go' }
3 Plug 'tpope/vim-surround'
4 Plug 'scrooloose/nerdtree'
5 Plug 'sheerun/vim-polyglot'
6 Plug 'PProvost/vim-ps1'
7 Plug 'tomasr/molokai'
8 Plug 'vim-airline/vim-airline'
9 Plug 'tpope/vim-fugitive'
10 Plug 'stamblerre/gocode'
11 Plug 'dense-analysis/ale'
12 Plug 'neoclide/coc.nvim', {'branch': 'release'}
13 call plug#end()
14
15 let g:go_addtags_transform = "snakecase"
16 " " Copy to clipboard
17 vnoremap y "+y
18 nnoremap Y "+yg_
19 nnoremap y "+y
20 nnoremap yy "+yy
21 " " Paste from clipboard
21 nnoremap p "+p
22 nnoremap P "+P
24 vnoremap p "+p
25 vnoremap P "+P
26 let g:go_auto_sameids = 1
27 let g:go_auto_info = 1`

  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • [ √] Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • [ √] Windows
  • Vim:
    • Terminal Vim
    • GVim
    • [ √] Neovim
@RaCs5
Copy link
Author

RaCs5 commented Oct 30, 2020

Pls help

@janlazo
Copy link
Contributor

janlazo commented Oct 30, 2020

Did you install vim-plug by putting in your autoload/ directory?

https://github.com/junegunn/vim-plug#windows-powershell-1

call plug#begin('~/AppData/local/nvim/autoload')

You should never put vim-plug plugins in an autoload/ directory. vim-plug should have caught that. It catches only plugin.

449b4f1

@KernalPenguino
Copy link

did you have git installed?

@y0l016
Copy link

y0l016 commented Nov 30, 2020

Did you install vim-plug by putting in your autoload/ directory?

https://github.com/junegunn/vim-plug#windows-powershell-1

call plug#begin('~/AppData/local/nvim/autoload')

You should never put vim-plug plugins in an autoload/ directory. vim-plug should have caught that. It catches only plugin.

449b4f1

I face the same issue on gVim in Windows. I put plug in autoload/ and in plugin . neither worked

@junegunn
Copy link
Owner

A common mistake people make on GVim is to put the configuration code in gvimrc instead of in vimrc.

#540

@nikunj321
Copy link

nikunj321 commented Jan 10, 2021

i have same error.
as i was running window(powershell) commad.

but i tried unix Url and it's working.
u can tried it out.
and all my confic in ~/.vimrc

@nikunj321
Copy link

Did you install vim-plug by putting in your autoload/ directory?
https://github.com/junegunn/vim-plug#windows-powershell-1

call plug#begin('~/AppData/local/nvim/autoload')

You should never put vim-plug plugins in an autoload/ directory. vim-plug should have caught that. It catches only plugin.
449b4f1

I face the same issue on gVim in Windows. I put plug in autoload/ and in plugin . neither worked

try unix url it will work.

@BooleanCube
Copy link

I just had to move my init.vim file to AppData/Local/nvim/init.vim

@janlazo
Copy link
Contributor

janlazo commented Jan 18, 2021

No comment from @RaCs5 and others have mentioned workarounds for this recurring issue so I'm closing this.

@janlazo janlazo closed this as completed Jan 18, 2021
@RSAAAAAAAAAAA
Copy link

RSAAAAAAAAAAA commented Feb 19, 2021

I have the same problem, vim catch the file "plug.vim", but it also show the problem "Not an editor command :PlugInstall"

@ericmelvin
Copy link

I had this issue because I had .vimrc open in a separate tab. I tried using the 'e' command to reload it. I tried closing out of the tab and opening it again. I needed to close all tabs and reopen .vimrc for this to install.

@arilebedey
Copy link

I had this issue because I used the Neovim "Windows (PowerShell)" install from https://github.com/junegunn/vim-plug#windows-powershell-1 instead of the Vim one. Running the right install solved it.

@skorokithakis
Copy link

I'm having the same issue on Linux with the automatic installation commands. It downloads the file fine, but then that command fails. Maybe that's a NeoVim command? I'm using plain vim.

@ghost
Copy link

ghost commented Feb 14, 2022

I just had to move my init.vim file to AppData/Local/nvim/init.vim

This worked.

@SafetyMary
Copy link

I just had to move my init.vim file to AppData/Local/nvim/init.vim

This worked for me thanks. Since this worked for multple people, maybe the installaton guide should be updated?

Repository owner deleted a comment from chriisduran Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests