Skip to content

Instantly share code, notes, and snippets.

@jay-johnson
Last active September 22, 2018 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay-johnson/a60e31986ca039f018a12cdecb8f1ada to your computer and use it in GitHub Desktop.
Save jay-johnson/a60e31986ca039f018a12cdecb8f1ada to your computer and use it in GitHub Desktop.
vim prepare steps with vundle and you complete me
#!/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