Generate methods easily for simple_bdd in Vim.
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
Run the :SimpleBDD
command on a single line to convert the simple_bdd statement into a method declaration and begin inserting.
Run the :SimpleBDD
command on a visual selection or range of lines to convert multiple simple_bdd statements into method declarations.
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>