javascriptが入ってるhtmlファイルののシンタックスハイライト

Put simply, while in normal mode, type the following:

:set filetype=htmlm4

You 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中のCSSjavascriptもよしなにハイライトされますよ。
とご指摘頂いたのでjavascript入りhtmlファイルを普通に開いたら、javascript部分もハイライトされてました。(vim 7.2のMacVim)
htmlm4はm4の定義を混ぜただけなので、html中のjavascriptシンタックスハイライトには関係ないそうです。