I'm using RVM to manage Ruby installs and Gems, and MacVim to create and edit Ruby files.
I have a key command in my
~/.vimrc mapped to evaluate a loaded Ruby file and print the output. It looks something like this:
map <Leader>r :w! <bar> !ruby %<CR>
Within a zsh shell, the
ruby command respects my RVM setting. In MacVim, however, the
ruby command loads the default Ruby at
/usr/bin/ruby, and it ignores RVM entirely. Is there any way to get MacVim to recognize the Ruby version I set with RVM?