only install nvim plugins if nvim exists

This commit is contained in:
ViViDboarder 2015-06-03 14:28:44 -07:00
parent 16956153a9
commit 5ed8198ba8
1 changed files with 3 additions and 4 deletions

View File

@ -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"; }