Skip to content

Instantly share code, notes, and snippets.

@raddevon
Last active August 29, 2015 14:16
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 raddevon/7e4dff70a200077ea922 to your computer and use it in GitHub Desktop.
Save raddevon/7e4dff70a200077ea922 to your computer and use it in GitHub Desktop.
Shell script to install Vim plugins for spf13 users
function vimp() {
changed=false
for plugin
do
if grep -q "$plugin" ~/.vimrc.bundles*
then
echo "$plugin already installed"
else
echo "Adding $plugin to bundles config"
echo Bundle \"$plugin\" >> ~/.vimrc.bundles.local
changed=true
fi
done
if [ $changed = true ]
then
vim "+BundleInstall!" "+BundleClean" +qa
echo "Plugin installation complete"
else
echo "No plugins installed"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment