sponsor Vim development Vim logo Vim Book Ad

rvm.vim : Switch Ruby versions from inside Vim

 script karma  Rating 0/0, Downloaded by 225    Comments, bugs, improvements  Vim wiki

created by
Tim Pope
 
script type
utility
 
description
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 command.

    :Rvm install 1.9.3

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

Report bugs at https://github.com/tpope/vim-rvm/issues.
 
install details
Extract in ~/.vim (~\vimfiles on Windows).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
rvm.zip 1.0 2012-10-13 7.0 Tim Pope Initial upload
ip used for rating: 54.80.225.32

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo