" Based on http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/ " Add new vim plugin " ------------------ " cd " git submodule add http://gitrepo.url/plugin.git .vim/bundle/pluginname " git add ... " git commit -m '...' " Clone the vim config to another machine " --------------------------------------- " git clone http://github.com/username/dotvim.git ~/.vim " cd ~/.vim " git submodule init " git submodule update " Update single plugin " -------------------- " cd ~/.vim/bundle/pluginname " git pull origin master " Upgrade all plugins " ------------------- " git submodule foreach git pull origin master