git clone https://github.com/gontcharovd/vim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim
git submodule update --init
git submodule add https://github.com/instant-markdown/vim-instant-markdown.git pack/plugins/start/vim-instant-markdown
git submodule update --remote --merge
Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule.
Run rm -rf .git/modules/path_to_submodule.
Commit git commit -m "Removed submodule "
Delete the now untracked submodule files rm -rf path_to_submodule