Created
April 17, 2011 09:52
-
-
Save keeganstreet/923900 to your computer and use it in GitHub Desktop.
Adding a Vim plugin as a git submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much. I was pulling my hair out trying to update plugins in an easier way.