Nithin Bekal About

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! This is my blog about programming. Ruby is my programming language of choice and the topic of most of my articles here, but I occasionally also write about Elixir, and sometimes about the books I read. You can use the atom feed if you wish to subscribe to this blog or follow me on Mastodon.