Since I’ve put .vim in a git repo, the best way to install pathogen bundles from github is to add a submodule to the repo; therefore, instead of running

cd ~/.vim/bundle
git clone https://cool-vim-plugin.git

I should run

cd ~/.vim
git submodule add https://cool-vim-plugin.git bundle/cool-vim-plugin
git submodule update --init --recursive

Followed by the obvious git add, git commit, git push origin master commands

Source: here


comments powered by Disqus