rspec.vim


Ⅰ. 插件描述

Better rspec syntax highlighting for Vim

Ⅱ. 基本信息

创建日期:  2013-04-28
使用用户:  12
Github星:  4
插件作者:  Adam Stankiewicz

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Rspec.vim

This is improved syntax highlighting for rspec. This is pulled from Specky which is a great plugin that just does a little too much for me.

Installation

With Vundle

Add:

Bundle 'Keithbsmiley/rspec.vim'

To your .vimrc and run BundleInstall from within vim or vim +BundleInstall +qall from the command line

With Pathogen

cd ~/.vim/bundle
git clone https://github.com/Keithbsmiley/rspec.vim.git

Usage

By default this syntax is used with all *_spec.rb files. If you don't follow this norm use something like:

autocmd BufReadPost,BufNewFile *_foo.rb set syntax=rspec

In your ~/.vimrc

添加新评论