Gee19 / vim-cucumber

Vim Cucumber runtime files

Home Page:http://www.vim.org/scripts/script.php?script_id=2973

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Runtime Options

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"

Documentation

Standard vim documentation is available through: :h vim-cucumber

Installation

Add the following to your vimrc: Plug 'Gee19/vim-cucumber'

then run :PlugInstall

TODO

  • Implement regex changes mentioned in tpope/pull/37#issuecomment-783803734
  • Add project specific configuration

About

Vim Cucumber runtime files

http://www.vim.org/scripts/script.php?script_id=2973


Languages

Language:Vim Script 100.0%