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. I work at Shopify in Ottawa, Canada. Previously, co-founder of CrowdStudio.in and WowMakers. Ruby is my preferred programming language, and the topic of most of my articles here, but I'm also a big fan of Elixir. Tweet to me at @nithinbekal.