javascriptが入ってるhtmlファイルののシンタックスハイライト
Put simply, while in normal mode, type the following:
:set filetype=htmlm4You can automatically load this syntax for all html files by adding the following line to your vimrc
au BufRead *.html set filetype=htmlm4
今度試す
追記(2009/6/19)
そんな設定をしなくてもデフォルト(:setfiletype html)でHTML中のCSSもjavascriptもよしなにハイライトされますよ。とご指摘頂いたのでjavascript入りhtmlファイルを普通に開いたら、javascript部分もハイライトされてました。(vim 7.2のMacVim)
htmlm4はm4の定義を混ぜただけなので、html中のjavascriptのシンタックスハイライトには関係ないそうです。