rapaul.com

A technical blog written by Richard Paul

Gherkin Highlighting for VIM

UPDATE: Check the comments, people have had more success with Brent’s suggestion.

I really wanted some highlighting on my .feature files in vim, I’m no vim expert so I did a bit of googling and came up with the following:

1
2
au Bufread,BufNewFile *.feature set filetype=gherkin
au! Syntax gherkin source ~/.vim/cucumber.vim
  • Make sure syntax on is also present
  • Open your feature file

If anyone knows a more vim way of doing this feel free to add a comment.

Comments