Vim-plug: how to use vim-plug install plug when the computer cannot access Github

Created on 18 Aug 2019  Â·  2Comments  Â·  Source: junegunn/vim-plug

Hello, I‘m trying to install plugs from local package because my linux server can’t access Github.

I download vim-easy-align package from github and try two ways in #701 ,and the error shows below:

call plug#begin('~/.vim/plugged')


Plug 'file://'.expand('~/.vim/plugged/vim-easy-align') 
"fatal: destination path '~/.vim/plugged/vim-easy-align' already exists and is not an empty directory.


Plug 'file://'.expand('~/otherdir/vim-easy-align') 
"fatal :'~/otherdir/my_plug' does not appear to be a git repository

call plug#end()


  • Type:

    • [ ] Bug

    • [ ] Enhancement

    • [ ] Feature Request

    • [x] Question

  • OS:

    • [ ] All/Other

    • [x] Linux

    • [ ] OS X

    • [ ] Windows

  • Vim:

    • [x] Terminal Vim

    • [ ] GVim

    • [ ] Neovim

question

Most helpful comment

In your use case, remove file:// prefix so that vim-plug loads the plugin directly from the directory. :PlugInstall is not needed.

Plug '~/otherdir/vim-easy-align'

All 2 comments

In your use case, remove file:// prefix so that vim-plug loads the plugin directly from the directory. :PlugInstall is not needed.

Plug '~/otherdir/vim-easy-align'

In your use case, remove file:// prefix so that vim-plug loads the plugin directly from the directory. :PlugInstall is not needed.

Plug '~/otherdir/vim-easy-align'

Thank you!
I solved it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zQueal picture zQueal  Â·  4Comments

mastertinner picture mastertinner  Â·  4Comments

xmudrii picture xmudrii  Â·  4Comments

LandonSchropp picture LandonSchropp  Â·  4Comments

LindyBalboa picture LindyBalboa  Â·  3Comments