Ⅰ. 插件描述
Plugin to open outline of current spec file(Rpsec, Jasmine) in a quickfix windowⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'emilsoman/spec-outline-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'emilsoman/spec-outline-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'emilsoman/spec-outline-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/emilsoman/spec-outline.vim
Ⅳ. 文档说明
spec-outline.vim
<Leader>? opens a spec outline in a quickfix window when inside a spec file
(Rspec, Jasmine).

To map your custom shortcut, add this to your vimrc.
map <silent> SHORTCUT :SpecOutlineToggle<CR>
Replace SHORTCUT with your keyboard shortcut.
Configuration
By default the outline shows up in a window on the right side. You can change
this by setting this config in your ~/.vimrc :
let g:spec_outline_orientation = 'bottom'
Permitted values for g:spec_outline_orientation are 'top', 'bottom','left' and 'right'.
Installation
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
Pathogen
git clone https://github.com/emilsoman/spec-outline.vim ~/.vim/bundle/spec-outline.vim
NeoBundle
NeoBundle 'emilsoman/spec-outline.vim'
Vundle
Plugin 'emilsoman/spec-outline.vim'
VAM
call vam#ActivateAddons([ 'spec-outline.vim' ])
manual
- copy all of the files into your
~/.vimdirectory
- copy all of the files into your
License
MIT License. Copyright (c) 2014 Emil Soman