Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@keeganstreet
Created April 17, 2011 09:52
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 all submodules
git submodule foreach git pull origin master
# 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