Last active
September 22, 2018 20:39
-
-
Save jay-johnson/a60e31986ca039f018a12cdecb8f1ada to your computer and use it in GitHub Desktop.
vim prepare steps with vundle and you complete me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
on_darwin=$(uname -s | grep -i darwin | wc -l) | |
test_brew_exists=$(which brew | wc -l) | |
if [[ "${test_brew_exists}" != "0" ]]; then | |
brew install cmake | |
fi | |
mkdir ~/.vim | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe | |
cd ~/.vim/bundle/YouCompleteMe | |
git submodule update --init --recursive | |
./install.py --clang-completer | |
echo '' | |
echo 'install vim plugins by opening a file and running the command:' | |
echo 'vim somefile' | |
echo ':PluginInstall' | |
echo '' | |
on_darwin=$(uname -s | grep -i darwin | wc -l) | |
if [[ "${on_darwin}" != "0" ]]; then | |
echo 'install vim and vundle:' | |
echo 'PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir pycurl' | |
echo '' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment