mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 19:17:35 +00:00
only install nvim plugins if nvim exists
This commit is contained in:
parent
16956153a9
commit
5ed8198ba8
@ -28,13 +28,12 @@ ln -s $VIM_SYNC_DIR/vim ~/.vim
|
||||
ln -s $VIM_SYNC_DIR/vimrc ~/.nvimrc
|
||||
ln -s $VIM_SYNC_DIR/vim ~/.nvim
|
||||
|
||||
# # Download and install vim-plug
|
||||
# curl -fLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
||||
# Install all bundles
|
||||
echo "Install all bundles"
|
||||
vim +PlugInstall +qall
|
||||
nvim +PlugInstall +qall
|
||||
if hash nvim 2>/dev/null; then
|
||||
nvim +PlugInstall +qall
|
||||
fi
|
||||
|
||||
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"; }
|
||||
|
Loading…
Reference in New Issue
Block a user