3
1
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?
that does the trick, and is definitely a better solution than mine. thanks very much! – michaelmichael – 2010-09-27T17:34:34.373