VIM Highlighting Embedded JavaScript in HTML

Quick tip I got from VIM Tips Wikia Site

If you’ve ever tried to edit an HTML file with embedded jscript, you’ll notice that VIM doesn’t syntax highlight the embedded javascript. Running this command:

:set filetype=htmlm4

Fixes that issue

Leave a Reply

Your email address will not be published. Required fields are marked *