Skip to content

Instantly share code, notes, and snippets.

@kennbrodhagen
Last active December 19, 2015 08:49
Show Gist options
  • Save kennbrodhagen/5928808 to your computer and use it in GitHub Desktop.
Save kennbrodhagen/5928808 to your computer and use it in GitHub Desktop.
Script for setting up my custom vim.
#!/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