As other answers point out, Pathogen manipulates the Vim runtime directories rather than managing plugins.
I use Git to manage changes to my Vim configuration files (living in ~/.vim
). Each of my plugins (including Pathogen itself) is installed into ~/.vim/bundle
directory as Git sub-modules. This allows me to to use git submodule
to pull in all changes
from the remote repository.
Change into the repository working directory:
cd ~/.vim
Ensure that each git sub-module has the master
branch checked out:
git submodule foreach git checkout master
Ensure that the remote-tracking branch is set to the origin remote:
git branch --set-upstream-to=origin/master master
# git submodule foreach git config branch.master.remote origin
Update each sub-module:
git submodule foreach git pull
mr
, the just domr update
from your home folder when desired, to update all of them at once). Note that, with Vim 8, you may not even need pathogen at all (see:h packages
).