From 5ed8198ba8ce4af861cd89c06fe22d29de1e5bb3 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 3 Jun 2015 14:28:44 -0700 Subject: [PATCH] only install nvim plugins if nvim exists --- vim-sync-append.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vim-sync-append.sh b/vim-sync-append.sh index ad46859..612b216 100755 --- a/vim-sync-append.sh +++ b/vim-sync-append.sh @@ -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"; }