gherkin
Gherkin Highlighting for VIM
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:
- Download cucumber.vim from http://github.com/tpope/vim-cucumber/blob/master/syntax/cucumber.vim
- Save the file to ~/.vim/cucumber.vim (creating the directory if required)
-
vim ~/.vimrc and add the following lines
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.
Search
Subscribe
Recent Posts
Tags
ajax
annotation
a small orange
aso
bdd
css
cucumber
cuke4duke
dependency injection
dojo
dojotoolkit
eclipse
fantastico
feed
feedburner
groovy
hosting
install
java
javascript
json
jsonp
last.fm
live
mashup
mocking
mockito
mocks
music
mvc
presentation
rockin' robin
selenium
slides
social
spring
tdd
test doubles
testing
testspy
theme
twitter
unit testing
web
wordpress
Archives
- I tend to print more and more emails these days... a sign of old age? 1 week ago
- Checking out slides on "Every day groovy" by @mr_paul_woods via @grailspodcast http://slidesha.re/9u3yrN 2 weeks ago
- Set up a twitter team account (@rickrollingnz) for our crazy trip through India in a Rickshaw, hoping to tweet from mobile as we go! 2 weeks ago
- More updates...
