简体   繁体   中英

How can I make vim-plug recognize a local project?

I am trying to make a plug in for vim-plug . At the moment I am not sure how to load a local directory. I have ran in my root directory:

mkdir vim-test
cd vim-test
git init
mkdir syntax

I then went into my ~/.config/nvim/init.vim file and I have:

" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

Plug 'junegunn/vim-easy-align'
Plug 'scrooloose/nerdtree'
Plug 'cespare/vim-toml'
Plug '~/vim-test'

" Initialize plugin system
call plug#end()

Currently, all the other plug ins seem to load, but vim-test does not show up as a package when I execute :PlugInstall and from what I can tell, it doesn't install either. What am I supposed to do to make vim-test show up?

As Nishant points out:

I think PlugInstall is for Github installation.

I was able to check the status with :PlugStatus and vim-test was in fact loaded with a status of OK . It just doesn't show up in :PlugInstall .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM