diff --git a/setup.sh b/setup.sh index 00a819c..fb3ee8e 100755 --- a/setup.sh +++ b/setup.sh @@ -30,3 +30,17 @@ do cp $(readlink -f $file) $backup fi done + +#see if Vundle has been cloned yet and do so +if [ ! -d ~/.vim ] +then + git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim + while true; do + read -p "Do you want to install the vim plugins now?" yn + case $yn in + [Yy]* ) vim +PluginInstall +qall; break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac + done +echo "you may need to run vim and execute :PluginInstall to sync packages with the new .vimrc"