Ⅰ. 插件描述
Run your specs in iTerm by sending commands to it from vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'skwp/vim-iterm-rspec-red'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'skwp/vim-iterm-rspec-red'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'skwp/vim-iterm-rspec-red'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/skwp/vim-iterm-rspec
Ⅳ. 文档说明
### Iterm Rspec
Very simple - sends a command from vim to run your rspec in your existing
iTerm window. No more, no less. I looked around and found many variations on
this theme, but none that did exactly what I want.
This one does not use bundle exec because it assumes you have a smart shell
that understands bundler (zsh with bundler plugin). Also it is more universal
without assuming bundle exec so that you can run truly fast specs without bundler.
Stolen from lparry/vim-iterm-rspec and modified to support running
specs with spring for running quick Rails specs, or just naked rspec
for fast specs.
This plugin is included in the YADR dotfile project
Included commands:
RunItermSpec
RunItermSpecLine
RunItermSpringSpec
RunItermSpringSpecLineSuggested Key Mappings
map <D-r> :RunItermSpec<cr>
map <D-l> :RunItermSpecLine<cr>
map <D-R> :RunItermSpringSpec<cr>
map <D-L> :RunItermSpringSpecLine<cr>