Ⅰ. 插件描述
Vim Cucumber runtime filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tpope/cucumber-zip'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tpope/cucumber-zip'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tpope/cucumber-zip'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tpope/vim-cucumber
Ⅳ. 文档说明
# vim-cucumber
This is the development version of Vim's included runtime files for the Ruby
acceptance testing framework Cucumber. It provides
syntax highlighting, indenting, and some editing commands.
Commands
vim-cucumber provides commands to jump from steps to step definitions in
feature files.
In normal mode, pressing [<C-d>
or ]<C-d>
on a step jumps to the
corresponding step definition and replaces the current buffer. <C-W>d
or<C-w><C-d>
on a step jumps to its definition in a new split buffer and moves
the cursor there. [d
or ]d
on a step opens the step definition in a new
split buffer while maintaining the current cursor position.
Installation
If you don't have a preferred installation method, I recommend installing
pathogen.vim, and then simply copy
and paste:
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-cucumber.git