Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Triggering from a spec folder #16

Open
AsaAyers opened this Issue Nov 2, 2012 · 0 comments

Comments

Projects
None yet
1 participant

AsaAyers commented Nov 2, 2012

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment