VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.92k stars 2.58k forks source link

Support installing multiple plugins from same repo when using 'rtp' option #780

Open dbarnett opened 7 years ago

dbarnett commented 7 years ago

I'm wanting to install one plugin from the root of a GitHub repository and another helper plugin from a subdirectory using Vundle's rtp option:

Plugin 'google/vim-maktaba'
Plugin 'google/vim-maktaba', {'rtp': 'examples/helloworld'}

But :PluginInstall with that in my .vimrc gives me

Vundle error: Name collision for Plugin google/vim-maktaba. Plugin google/vim-maktaba previously used the name "vim-maktaba". Skipping Plugin google/vim-maktaba.

I also tried using 'name': 'helloworld' in the options to disambiguate the two plugin names, but that confuses Vundle even worse: it adds a nonexistent ~/.vim/bundle/helloworld/examples/helloworld to the runtimepath but skips actually creating any ~/.vim/bundle/helloworld path on :PluginInstall, apparently since it sees it already cloned google/vim-maktaba.

Note: I filed a similar bug at junegunn/vim-plug#582, with slightly different symptoms there.

willvousden commented 6 years ago

Possibly related to #539