vim
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.
Subscribe
Recent Posts
Tags
annotation
a small orange
aso
bdd
ci
css
cucumber
cuke4duke
dependency injection
dojo
eclipse
fantastico
feed
feedburner
geb
groovy
hosting
install
java
javascript
json
jsonp
JUnit
last.fm
live
mashup
mocking
mockito
music
mvc
presentation
rockin' robin
selenium
slides
social
spring
tdd
teamcity
testing
theme
twitter
unit testing
web
webdriver
wordpress
- "Sorry, no matches found for “tdd” near Auckland, New Zealand" http://t.co/Ahc736MX #auckland #whowantstostartonewithme 2 weeks ago
- Great series on the SOLID design principles for JavaScript http://t.co/ELoPuOH2 2 weeks ago
- Auckland devs, what meetups should I be attending? #java #groovy #ruby #javascript #bdd #tdd 2 weeks ago
- More updates...
