Vim-plug: Cannot load local plugin

Created on 5 Nov 2017  ยท  3Comments  ยท  Source: junegunn/vim-plug


I added the directory in init.vim as

Plug '~/Documents/Projects/vim-test'

and ran :PlugInstall but it is not loading the plugin.

Folder structure is like a vim plugin structure

.
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ ftdetect
โ”‚ย ย  โ””โ”€โ”€ test.vim
โ””โ”€โ”€ syntax
  ย  โ””โ”€โ”€ test.vim

NVIM v0.2.1-237-gf4fddbfb7
Build type: RelWithDebInfo
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextr
a -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I
/tmp/neovim-20170525-84454-1l1qpk/build/config -I/tmp/neovim-20170525-84454-1l1qpk/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/l
ocal/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20170525-84454-1l1qpk/build/src/nvim/auto -I/tmp/neovim-20170525-844
54-1l1qpk/build/include
Compiled by [email protected]

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-f4fddbf/share/nvim"

  • Type:

    • [x] Bug

    • [ ] Enhancement

    • [ ] Feature Request

    • [ ] Question

  • OS:

    • [ ] All/Other

    • [ ] Linux

    • [x] OS X

    • [ ] Windows

  • Vim:

    • [ ] Terminal Vim

    • [ ] GVim

    • [x] Neovim

question

Most helpful comment

vim-plug can load the plugin directly from the directory without copying it, so there's no installation. If you do want it to be copied, you can write it in absolute path with file:// prefix.

Plug 'file:///Users/jg/foo/bar'

" or if you don't want to hard-code home directory
Plug 'file://'.expand('~/foo/bar')

All 3 comments

vim-plug can load the plugin directly from the directory without copying it, so there's no installation. If you do want it to be copied, you can write it in absolute path with file:// prefix.

Plug 'file:///Users/jg/foo/bar'

" or if you don't want to hard-code home directory
Plug 'file://'.expand('~/foo/bar')

This no longer works.

It works fine so far:

call plug#begin('~/.local/share/nvim/plugged')

" work fine
Plug 'file://'.expand('~/.local/share/nvim/plugged/my_plug') 

" not work!!!
Plug 'file://'.expand('~/dev_pluggins/my_plug') 

call plug#end()
Was this page helpful?
0 / 5 - 0 ratings

Related issues

damnever picture damnever  ยท  4Comments

LandonSchropp picture LandonSchropp  ยท  4Comments

fvictorio picture fvictorio  ยท  3Comments

mastertinner picture mastertinner  ยท  4Comments

LindyBalboa picture LindyBalboa  ยท  3Comments