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:
parent
384d4ad5e6
commit
d6014c3a60
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue