Skip to content

Instantly share code, notes, and snippets.

@paulfioravanti
Last active July 7, 2020 01:18
Show Gist options
  • Save paulfioravanti/f9a55eb1dbb0bac34254e89cc5b5bf7e to your computer and use it in GitHub Desktop.
Save paulfioravanti/f9a55eb1dbb0bac34254e89cc5b5bf7e to your computer and use it in GitHub Desktop.
What to do when brew updates Ruby versions and Command-T won't work on Vim anymore
brew uninstall vim
brew uninstall ruby
# vim will install Ruby as a dependency via homebrew
brew install vim
# Command-T needs to compile against the system Ruby
# and not the one installed via asdf
asdf global ruby system
# cd ~/.vim/bundle/command-t/ruby/command-t/ext/command-t
cd ~/.vim/plugged/command-t/ruby/command-t/ext/command-t
make clean
ruby extconf.rb
# or /usr/local/opt/ruby/bin/ruby extconf.rb
make
asdf global ruby <2.x.x> # whatever the global version should be
vim
# At this point, Command-T *should* work if you open a new terminal window...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment