I\'m working on a Symfony2 project which uses Twig, and the filetypes are myfile.html.twig
. Vim doesn\'t automatically detect the syntax highlighting and so applies
I know this doesn't directly answer the question, however this answers the intent of the question, which is to get syntax highlighting working with Twig / Symfony 2
I suggest you check out https://github.com/beyondwords/vim-twig (not mine), which provides:
I hope this helps