Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.14 KB

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:

Plugin 'mdelillo/vim-simple-bdd'
NeoBundle 'mdelillo/vim-simple-bdd'
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>