Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
rvm.vim: switch Ruby versions from inside Vim
branch: master

This branch is 15 commits behind tpope:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
plugin
.gitignore
README.markdown

README.markdown

rvm.vim

Want to use RVM with Vim? You don't need a plugin to do that: Just start Vim from your RVM enabled shell and it will work. But say you started MacVim from Launchpad, or you started Vim with one version of Ruby and now you want another. That's where rvm.vim comes in.

:Rvm 1.9.2

If you want to see the version that was chosen, use use:

:Rvm use default

If you leave off the version, it goes .rvmrc hunting relative to the current buffer.

:Rvm
:Rvm use

If you really want to get crazy, you can make this happen automatically as you switch from buffer to buffer.

:autocmd BufEnter * Rvm

You can also invoke any old rvm command.

:Rvm install 1.9.3

Add %{rvm#statusline()} to 'statusline' (or 'titlestring') to see the current Ruby version at all times.

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/tpope/vim-rvm.git

Once help tags have been generated, you can view the manual with :help rvm.

FAQ

RVM doesn't work in my Vim.

You're using zsh on OS X, aren't you? Move that stupid /etc/zshenv to /etc/zshrc.

Contributing

See the contribution guidelines for rails.vim.

Self-Promotion

Like rvm.vim? Follow the repository on GitHub. And if you're feeling especially charitable, follow tpope on Twitter and GitHub.

License

Distributable under the same terms as Vim itself. See :help license.

Something went wrong with that request. Please try again.