Jump to cucumber step definitions in VIM
There is an amazing vim plugin vim-cucumber that allows you to jump from step
(.feature file) to its definition
(_steps.rb file).
In vim normal mode put the cursor on any step inside a .feature
file and:
-
[d
or]d
=> split pane -
<CTRL-w><CTRL-d>
=> split pane and change cursor focus -
[<CTRL-d>
or]<CTRL-d>
=> replace pane
h/t @mrmicahcooper
Tweet