Skip to content

Instantly share code, notes, and snippets.

@Phize
Created October 21, 2011 16:05
Show Gist options
  • Save Phize/1304219 to your computer and use it in GitHub Desktop.
Save Phize/1304219 to your computer and use it in GitHub Desktop.
CSSLint (Rhino) compiler plugin.
if exists('current_compiler')
finish
endif
let current_compiler = 'csslint'
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo-=C
CompilerSet makeprg=csslint-rhino\ --format=compact\ %
CompilerSet errorformat=%A%f:\ line\ %l\\,\ col\ %c\\,\ %m,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment