Vim Cucumber runtime files
Vim script
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 21 commits ahead of tpope:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



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.

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='/Users/jesii/features/step_definitions/mobweb/**/*.rb'


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


If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://