title: Can I make vim do syntax highlighting on C++ headers that don't have extensions?
body: <p>I have a project with a bunch of C++ header files that follow the standard C++ header naming convention; that is, a class called Foo would be declared in a file called <code>Foo</code>, not <code>Foo.h</code> or <code>Foo.hh</code>. Is there a good way to configure vim to do syntax highlighting for these files only? A slightly-less-pleasing fallback would be to enable C++-style highlighting for all files that don't have an extension. I'm not sure if there's any more sophisticated way to detect the type of file instead of relying solely on its extension.</p>