最初は jslint.vim を使っていたんだけど、jslint-core.js を最新にするのが面倒だったので npm で簡単に管理できる node-jshint を使う設定を書いてみた。 errormarker.vim とあわせて使うとなかなか快適。 jslint.vim みたいに書いたはしからチェックかけるようにするにはどうすればいいんだろう…… if exists("current_compiler") finish endif let current_compiler = "jshint" let s:save_cpo = &cpo set cpo&vim if exists(":CompilerSet") != 2 command -nargs=* CompilerSet setlocal <args> endif CompilerSet makeprg=jshint\ % C