claco / jasmine.vim

Jasmine Plugin for Vim
82 stars 18 forks source link

Triggering from a spec folder #16

Open AsaAyers opened 12 years ago

AsaAyers commented 12 years ago

I don't use files that end in spec.js, instead I have a folder named 'spec'.

I tried modifying the autcmd lines, but it doesn't seem like it reads the full file path. If it did, this would be my suggestion:

autocmd BufNewFile,BufRead,BufWritePost *[Ss]pec*js,*SpecHelper*js set filetype=jasmine.javascript syntax=jasmine.javascript
autocmd BufNewFile,BufRead,BufWritePost *[Ss]pec*coffee,*SpecHelper*coffee set filetype=jasmine.coffee syntax=jasmine.coffee