wayfare
wayfare

Reputation: 709

HAML inline javascript syntax highlighting in vim?

I have added some javascript code in my haml %script tag. But I noticed that syntax highlighting doesn't work for the javascript code inside the tag. Is there any good plug-in that can handle this? btw I use mac vim. Thank you!

Upvotes: 2

Views: 430

Answers (1)

romainl
romainl

Reputation: 196566

Try :set ft=haml.javascript.

Upvotes: 1

Related Questions