mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-04 19:06:56 +00:00
parent
2061f3b219
commit
a869f13c7f
24
update-plugins.sh
Executable file
24
update-plugins.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user