rvm_ruby.vim


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2010-09-26
使用用户:  2
Github星:  7
插件作者:  James Conroy-Finn

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jcf/rvm-ruby-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jcf/rvm-ruby-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jcf/rvm-ruby-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jcf/rvm_ruby.vim

Ⅳ. 文档说明

# No longer supported!

MacVim now supports using your RVM ruby, making this plugin somewhat

  1. For the few remaining features you might want I'd recommend
  2. 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]

添加新评论