Nithin Bekal

Posts About Notes Slides

Making Vim Play Nice With ZSH and RVM

18 Jan 2015

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:

sudo mv /etc/zshenv /etc/zshrc

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.

Hi, I’m Nithin Bekal, a software craftsman with over 7 years of experience in shipping web applications. I mostly use Ruby, but lately have also been exploring Elixir. Co-founder of CrowdStudio.in, and helping organize Rubyconf India. Tweet to me at @nithinbekal.