#!/bin/bash
# Configure vim, install plugins, and configure plugins if needed

# Install Vundle to get vim plugins defined in .vimrc up and running
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Execute vim without running a vimrc
vim +PluginInstall +qall

# Command-T requires compiling against the system Ruby
chruby system
ruby -C ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/ extconf.rb
make -C ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/

#!/bin/bash
# Configure vim, install plugins, and configure plugins if needed

# Install Vundle to get vim plugins defined in .vimrc up and running
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Execute vim without running a vimrc
vim +PluginInstall +qall

# Command-T requires compiling against the system Ruby
# If there are issues with Vim and Ruby, make the asdf system ruby point to
# the latest brew-installed version of Ruby:
# $ brew link --overwrite ruby
#
# Install process when new versions of brew vim are installed:
# $ cd ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/
# $ make clean
# $ ruby extconf.rb
# $ make
#
# Helpful links:
# - https://superuser.com/questions/1096438/brew-upgrade-broke-vim-on-os-x-dyld-library-not-loaded
# Issues with ld flags:
# - https://github.com/wincent/command-t/issues/316
chruby system
ruby -C ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/ extconf.rb
make -C ~/.vim/bundle/command-t/ruby/command-t/ext/command-t/


Add more documentation around issues with brew-upgraded ruby and vim
Add more documentation around issues with brew-upgraded ruby and vim
