# install brew, git, vim w/ python first
PYTHON=python3
#set -x
for f in $(ls -1A | grep -v 'README\|.git$'); do
cp -R $f $HOME
done
if [ "$#" -gt 0 ]; then
if [ "$1" == "--copy-only" ]; then
echo '** copy only **'
echo '* manual plugin configuration required'
exit
fi
fi
vim +PlugInstall +qall
if [ "$(uname)" == "Darwin" ]; then
brew install cmake
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo apt install build-essential cmake python3-dev
fi
cd ~/.vim/plugs/YouCompleteMe
$PYTHON install.py --clang-completer