vim-simple-bdd


Ⅰ. 插件描述

Vim plugin to generate methods for simple_bdd gem

Ⅱ. 基本信息

创建日期:  2015-04-29
使用用户:  7
Github星:  1
插件作者:  Mark DeLillo

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mdelillo/vim-simple-bdd'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mdelillo/vim-simple-bdd'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mdelillo/vim-simple-bdd'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mdelillo/vim-simple-bdd

Ⅳ. 文档说明

# vim-simple-bdd

Generate methods easily for [simple_bdd][] in Vim.

Installation

It is recommended to use a plugin manager for Vim. Here are some examples:

[Vundle][]

Plugin 'mdelillo/vim-simple-bdd'

[NeoBundle][]

NeoBundle 'mdelillo/vim-simple-bdd'

[Pathogen][]

git clone https://github.com/mdelillo/vim-simple-bdd.git ~/.vim/bundle/vim-simple-bdd

Usage

Run the :SimpleBDD command on a single line to convert the simple_bdd statement into a method declaration and begin inserting.

alt tag

Run the :SimpleBDD command on a visual selection or range of lines to convert multiple simple_bdd statements into method declarations.

alt tag

Mappings

The following mappings will let you use <leader>bdd in normal and visual mode instead of having to run :SimpleBDD:

nnoremap <leader>bdd :SimpleBDD<CR>
vnoremap <leader>bdd :SimpleBDD<CR>

添加新评论