Last active
August 29, 2015 14:16
-
-
Save raddevon/7e4dff70a200077ea922 to your computer and use it in GitHub Desktop.
Shell script to install Vim plugins for spf13 users
This file contains hidden or 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
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