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
myfile.html.twig
You can use autocmd to accomplish that, i.e.:
autocmd
augroup twig_ft au! autocmd BufNewFile,BufRead *.html.twig set syntax=html augroup END
Should work.