Based on https://github.com/dudarev/dotvim
which is based on http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
git clone http://github.com/dudarev/dotvim.git ~/.vim
cd .vim
git submodule init
git submodule update
git submodule update --init --recursive
git submodule foreach git pull origin master
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
git add .
git commit -m "Install Fugitive.vim bundle as a submodule."
- Delete the relevant section from the .gitmodules file.
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Commit and delete the now untracked submodule files.