YCM=~/.vim/bundle/YouCompleteMe

sudo pacman -S python cmake --needed --noconfirm

#######################
## Initialise Vundle ##
#######################
mkdir -p ~/.vim/{bundle,swapfiles}
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall


#########################
## Setup YouCompleteMe ##
#########################
cd "$YCM"
git submodule update --init --recursive
./install.py --clang-completer