Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This plugin has been superseded by Tim Pope's rvm.vim (http://github.com/tpope/vim-rvm). Switch Ruby version at runtime in MacVim

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 plugin
Octocat-spinner-32 README.md
Octocat-spinner-32 VERSION
README.md

No longer supported!

MacVim now supports using your RVM ruby, making this plugin somewhat redundant. For the few remaining features you might want I'd recommend using Tim Pope's excellent rvm.vim.

rvm_ruby.vim

Until MacVim supports RVM I've written this quick little plugin that provides a Ruby command.

Everything gets routed to the rvm directory in your $HOME folder. It doesn't support alternate rvm directories!

Installation

Using submodules

cd ~/.vim
git submodule add git://github.com/jcf/rvm_ruby.vim.git vim/bundle/rvm_ruby.vim

Alternatively…

You can use the more traditional installation methods. Just dump the rvm_ruby.vim file in to plugin.

Usage

Pick a version of Ruby and open a Ruby file in MacVim:

rvm use 1.9.2-p0
mvim script.rb

Use the Ruby ex command:

:Ruby -v

And you'll get some nice output:

ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Something went wrong with that request. Please try again.