Ⅰ. 插件描述
Better rspec syntax highlighting for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'keith/rspec-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'keith/rspec-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'keith/rspec-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/keith/rspec.vim
Ⅳ. 文档说明
# rspec.vim
This provides improved syntax highlighting for rspec. This is pulled
from Specky
which is a great plugin which just does a little too much for me.
If you don't have a preferred installation method check out
vim-plug
Usage
By default this syntax is used with all *_spec.rb files. If you don't
follow this pattern use something like:
autocmd BufNewFile,BufRead *_foo.rb set syntax=rspecIn your ~/.vimrc