From 588224a59115751862eedb570a1ea5975efba449 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sun, 31 Aug 2014 22:28:20 +0200 Subject: [PATCH] Added YouCompleteMe back and update install script --- .gitmodules | 3 +++ install.sh | 23 +++++++++++++++++++++++ vim/bundle/YouCompleteMe | 1 + 3 files changed, 27 insertions(+) create mode 160000 vim/bundle/YouCompleteMe diff --git a/.gitmodules b/.gitmodules index 693fc2f..bc5a12c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "vim/bundle/vim-colors-solarized"] path = vim/bundle/vim-colors-solarized url = git@github.com:altercation/vim-colors-solarized +[submodule "vim/bundle/YouCompleteMe"] + path = vim/bundle/YouCompleteMe + url = git@github.com:Valloric/YouCompleteMe.git diff --git a/install.sh b/install.sh index 741d8fc..97117ca 100755 --- a/install.sh +++ b/install.sh @@ -26,6 +26,29 @@ while true; do esac done +while true; do + read -p "Do you wish to update all submodules?" yn + case $yn in + [Yy]* ) git submodule update --init --recursive + break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + +while true; do + read -p "Do you wish to compile YCM?" yn + case $yn in + [Yy]* ) ./vim/bundle/YouCompleteMe/install.sh + break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + +git submodule update --init --recursive + + if [ ! -f /usr/local/bin/tmux-vim-select-pane ]; then curl -fsSL https://raw.github.com/mislav/dotfiles/1500cd2/bin/tmux-vim-select-pane -o /usr/local/bin/tmux-vim-select-pane; chmod +x /usr/local/bin/tmux-vim-select-pane; diff --git a/vim/bundle/YouCompleteMe b/vim/bundle/YouCompleteMe new file mode 160000 index 0000000..af0fdef --- /dev/null +++ b/vim/bundle/YouCompleteMe @@ -0,0 +1 @@ +Subproject commit af0fdef1b91717d74e11718eb0ce9a49b061348a