Add update script

Closes #6
This commit is contained in:
ViViDboarder 2017-10-25 10:40:07 -07:00
parent 2061f3b219
commit a869f13c7f

24
update-plugins.sh Executable file
View File

@ -0,0 +1,24 @@
#! /bin/bash
echo "Update vim-plug"
vim +PlugUpgrade +qall
vim +PlugClean! +qall
# Install all bundles
echo "Install all bundles"
if hash nvim 2>/dev/null; then
if hash pip 2>/dev/null; then
echo 'Installing neovim python module in $HOME'
pip install --user neovim
fi
echo "If using Neovim, install the python modules in your environment"
nvim +PlugUpdate +PlugInstall +qall
fi
vim +PlugUpdate +PlugInstall +qall
vim --version | grep -q '\+lua' || { echo "Warning: Default vim does not include lua"; }
vim --version | grep -q '\+ruby' || { echo "Warning: Default vim does not include ruby."; }
vim --version | grep -q '\+python' || { echo "Warning: Default vim does not include python"; }
echo "All done!"
exit 0