Multiple file types in vim

Solution 1:

You can specify to use multiple filetypes at the same time. For example:

:setfiletype html.php

But most of filetype plugings and syntax files are not designed for such cases. See also :help 'filetype'