Based on http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/ and https://github.com/dudarev/dotvim
git clone http://github.com/sembruk/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd .vim
git submodule update --init
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.