fix #524, update plugins

* if .vim/autoload/plug.vim already exists, then use PlugUpgrade to get
  the newest version. This should fix #524.
* change from PlugInstall to PlugUpdate which doesn't just install new
  plugins but also updates existing ones.
This commit is contained in:
Frank Loesche 2017-07-07 09:49:12 +01:00 committed by Geoff Harcourt
parent 384d4ad5e6
commit d6014c3a60

View file

@ -2,11 +2,13 @@
touch "$HOME"/.psqlrc.local
if [ ! -e "$HOME"/.vim/autoload/plug.vim ]; then
if [ -e "$HOME"/.vim/autoload/plug.vim ]; then
vim -E -s +PlugUpgrade +qa
else
curl -fLo "$HOME"/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
vim -u "$HOME"/.vimrc.bundles +PlugInstall +PlugClean! +qa
vim -u "$HOME"/.vimrc.bundles +PlugUpdate +PlugClean! +qa
reset -Q