Making Vim Play Nice With ZSH and RVM
Over the past few months of using vim, I’ve been annoyed by the fact that it keeps using the wrong version of Ruby when using plugins like rails.vim. I fixed the problem with this:
It turns out that on OSX, you need to rename the
/etc/zshenv file to
zshrc for vim to read the PATH correctly. Now if you want to use vim plugins like rspec.vim, they should work perfectly.
If this doesn’t help fix the problem, other people have run into this problem too, and have used other approaches to solve it. Maybe that will help.