Created: 2012-03-22 23:14
Updated: 2017-06-07 20:26

Vim Plug-in Management with Pathogen and Git


0.) Setup a new machine

$ cd ~
$ git clone --recursive .vim
$ ln -s .vim/.vimrc .vimrc
$ ln -s .vim/Xresources .Xresources
$ ln -s .vim/.bash_profile .bash_profile
$ ln -s .vim/.screenrc .screenrc

1.) Add a new plugin

$ mv /path/to/plugin ~/.vim/bundle/plugin_name 
$ cd ~/.vim
$ git submodule add git:// bundle/fugitive
$ git submodule init && git submodule update

2.) Pull latest upstream changes to plugins

$ git submodule foreach git pull

3.) Remove a plugin (via

1. Delete the relevant line from .gitmodules file
2. Delete the relevant section from .git/config
3. Run git rm --cached path_to_submodule (no trailing slash)
4. Commit and delete the now untracked submodule files
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more