nixprime / cpsm

A CtrlP matcher, specialized for paths.
Apache License 2.0
202 stars 19 forks source link

install.sh fails when run from within vim #42

Closed ptzz closed 6 years ago

ptzz commented 6 years ago

The plugin manager at https://github.com/junegunn/vim-plug supports configuring install scripts like Plug 'nixprime/cpsm', { 'do': './install.sh' } which trigger rebuild on update. However it fails for cpsm because VIM is defined inside vim to usr/local/share/vim, which is a directory. Hence the line VIM="${VIM:-vim}" in install.sh does not produce a path to the vim executable.

Running the script manually works fine though. On a mac with Homebrew vim.

Thanks for the impressive ctrlp speedup!