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.
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.
vim-cucumber looks through steps defined in your 'features' or 'stories' folder. Usually this is OK, but if you work in a multi-project environment, where each project has its own sub-folder, this can lead to many occurences of 'Multiple matching steps...' and extra work to find the step that your project uses.
To avoid this situation, you can export the CUKEFILES environment variable as a glob specification, which will then be used in place of the default. An example would be:
export CUKEFILES="/path/to/step/definitions/\*\*/\*.cucumber.ts"
Standard vim documentation is available through:
:h vim-cucumber
Add the following to your vimrc:
Plug 'Gee19/vim-cucumber'
then run :PlugInstall
- Implement regex changes mentioned in tpope/pull/37#issuecomment-783803734
- Add project specific configuration