Skip to content

Instantly share code, notes, and snippets.

@jasonleonhard
Created August 10, 2015 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonleonhard/9500c94f02e9d6c7df77 to your computer and use it in GitHub Desktop.
Save jasonleonhard/9500c94f02e9d6c7df77 to your computer and use it in GitHub Desktop.
add a vim bundle
#!/usr/bin/env bash
mkdir -p ~/.vimbundles
cd ~/.vimbundles
get_bundle() {
(
if [ -d "$2" ]; then
echo "Updating $1's $2"
cd "$2"
git pull --rebase
else
git clone "git://github.com/$1/$2.git"
fi
)
}
get_bundle tpope vim-commentary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment