How to force vim to syntax-highlight a file as html?

Karthick picture Karthick · Oct 4, 2010 · Viewed 80.7k times · Source

How do I set vim's syntax highlighting to treat a file extension as an html file?

I'm using ez template, so the file's extension is .ezt. But a lot of it is normal html code.

Answer

Amber picture Amber · Oct 4, 2010
:set syntax=html