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
au BufNewFile,BufRead,BufReadPost *.twig set syntax=HTML
And add this line to ~/.vimrc to make the settings persistent.
~/.vimrc