Skip to content

Instantly share code, notes, and snippets.

@keeganstreet
Created April 17, 2011 09:52
Show Gist options
  • Save keeganstreet/923900 to your computer and use it in GitHub Desktop.
Save keeganstreet/923900 to your computer and use it in GitHub Desktop.
Adding a Vim plugin as a git submodule
# From http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
# Add a Vim plugin as a git submodule
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
git add .
git commit -m "Install Fugitive.vim bundle as a submodule."
# Update a submodule
cd ~/.vim/bundle/fugitive
git pull
# Pull submodules from git onto a different computer
git submodule init
git submodule update
@GMSoudersJr
Copy link

Thank you so much. I was pulling my hair out trying to update plugins in an easier way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment