bronson / vim-update-bundles

Use Pathogen and Git to manage your Vim plugins.
91 stars 13 forks source link

option to disable auto download pathogen. #24

Closed t9md closed 13 years ago

t9md commented 13 years ago

pathogen itself can be loaded from ~/.vim/bundle directory. so I hope vim-update-bundles support option to disable downloading pathogen into ~/.vim/autoload/ directory.

Here is excerpt from pathogen's README.md's FAQ section.

Q. Can I put pathogen.vim in a submodule like all my other plugins? A. Sure, stick it under ~/.vim/bundle, and prepend the following to your vimrc:

source ~/.vim/bundle/vim-pathogen/autoload/pathogen.vim
bronson commented 13 years ago

I agree. It sounds like an easy modification.

How would you autodetect this? Presence of a ~/.vim/bundle/vim-pathogen directory?

t9md commented 13 years ago

Thanks.

How would you autodetect this? Presence of a ~/.vim/bundle/vim-pathogen directory? Current vim-update-bundles assume bundle dir located on bundle_dir = "#{config[:vimdir_path]}/bundle". so, autodetect is simple I think.

But another strategy(execution order) change is seem to good for future maintainability(ex: support option to specify bundle dir name).

bronson commented 13 years ago

Shoot, this is such a good idea that I'm thinking vim-update-bundles shouldn't install Pathogen at all. It'll just print a warning if your .vimrc doesn't specify a Pathogen bundle.

Besides, I always wondered how vim-update-bundles would keep the Pathogen script up to date... This fixes that.

bronson commented 13 years ago

Hope that makes it easy to support tplugin, see Runtime Path in the README.

If you try it, please file an issue! I'd like to include instructions for using tplugin in the Runtime Path section too.

t9md commented 13 years ago

Thanks, good update! this update greatly help new Vim user start using other's configiration which use Vundle.