vim-rspec


Ⅰ. 插件描述

Run Rspec specs from Vim

Ⅱ. 基本信息

创建日期:  2013-04-03
使用用户:  27
Github星:  0
插件作者:  Josemar Luedke

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'josemarluedke/vim-rspec-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'josemarluedke/vim-rspec-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'josemarluedke/vim-rspec-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# rspec.vim

This is a lightweight Rspec runner for Vim.

Installation

Recommended installation with vundle:

Bundle 'thoughtbot/vim-rspec'

Recommended mappings

" Rspec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>

Configuration

Overwrite g:rspec_command variable to execute a custom command.

Example:

let g:rspec_command = "!rspec --drb {spec}"

License

rspec.vim is copyright © 2013 thoughtbot. It is free software, and may be
redistributed under the terms specified in the LICENSE file.

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

添加新评论