Last active
December 19, 2015 08:49
-
-
Save kennbrodhagen/5928808 to your computer and use it in GitHub Desktop.
Script for setting up my custom vim.
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 | |
# Install the silver searcher (ag) for super-fast searching capability | |
brew install --overwrite the_silver_searcher | |
# Install pythong because on one of my systems the vim install got all bent | |
# out of shape and picked the wrong python (python already exists, so overwrite it) | |
brew install --overwrite python | |
# Install the latest vim so YouCompleteMe will work | |
brew install --overwrite vim | |
# Need to get mac's vim out of the way so we use the brew installed one. | |
sudo mv /usr/bin/vim /usr/bin/vim.vimsetup.ken | |
# Download the NeoBundle plugin and install it | |
mkdir -p ~/.vim/bundle | |
git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim | |
# Download my .vimrc | |
mv ~/.vimrc ~/.vimrc.vimsetup.ken | |
curl -v https://gist.github.com/kennbrodhagen/5901857/raw > ~/.vimrc | |
# Run vim bundle install | |
vim +NeoBundleInstall +q! | |
# Build the YouCompleteMe bundle | |
cd ~/.vim/bundle/YouCompleteMe | |
./install.sh --clang-completer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment