sponsor Vim development Vim logo Vim Book Ad

rvm.vim : RVM Integration

 script karma  Rating 14/9, Downloaded by 587    Comments, bugs, improvements  Vim wiki

created by
Christopher Sexton
 
script type
utility
 
description
Adds RVM (Ruby Version Manager http://rvm.beginrescueend.com/) integration to Vim.

Currently that is a function for adding the active Ruby to the status line.

Latest and greatest is on github, also that is the place to report issues http://github.com/csexton/rvm.vim
 
install details
Copy rvm.vim into your ~/.vim/plugin directory.

To add the active rvm ruby to the status line:

    set statusline+=%{rvm#statusline()}

Or you could get fancy and do something like this:

    set statusline=[%n]\ %<%.99f\ %h%w%m%r%y%{exists('g:loaded_rvm')?rvm#statusline():''}%=%-16(\ %l,%c-%v\ %)%P

Having the "exists" check will degrade gracefully if you move your .vimrc around to computers that may not have the rvm.vim plugin installed.
 

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.vim 0.1.0 2010-06-28 6.0 Christopher Sexton Initial upload
ip used for rating: 23.23.22.200

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