Last active
July 7, 2020 01:18
-
-
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
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
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