Jade syntax highlighting for meteor-jade in Vim
Owing to a
hack, your initial Jade file in
Meteor using
Meteor-Jade needs to be called with a double extension
myApp.jade.html
. This breaks the basic syntax highlighting mechanism based on file extension. Thankfully, we can teach
Vim to handle these weird extensions. Here is how I set it up in my
~/.vimrc
:
Bundle 'digitaltoad/vim-jade'
au BufNewFile,BufRead,BufReadPost *.jade.html set filetype=jade
Note: I've shared my dotfiles on Github:
https://github.com/PEM--/dotfiles
No comments:
Post a Comment