I am working on a Symfony2 project that uses Twig, and the file types are myfile.html.twig . Vim does not automatically detect syntax highlighting and therefore does not apply. I can use :set syntax=HTML after I opened the file, but this is a pain when switching between files.
Is there a way to persistently set syntax highlighting for a specific file type in vim?
vim macvim syntax-highlighting twig
Bendihossan Jul 26 '12 at 9:21 2012-07-26 09:21
source share