Skip to content

Instantly share code, notes, and snippets.

@oppara
Created July 7, 2011 17:27
Show Gist options
  • Save oppara/1070049 to your computer and use it in GitHub Desktop.
Save oppara/1070049 to your computer and use it in GitHub Desktop.
css flyquickfixmake
if exists("b:did_ftplugin_css_flyquickfixmake")
finish
endif
let b:did_ftplugin_css_flyquickfixmake = 1
if (has('mac'))
setlocal makeprg=csslint\ --rules=
\display-property-grouping,
\ids,
\qualified-headings,
\zero-unitsendor-prefix,
\gradients,
\box-model,
\important,
\compatible-vendor-prefixes,
\duplicate-properties\
\ %\ 2>&1\ \\\|\ $MY_VIMRUNTIME/tools/csslint_filter.pl
else
endif
setlocal errorformat=%f[%l\\,%c]%m
augroup MyCssAutoCmd
autocmd! * <buffer>
autocmd BufWritePost <buffer> silent! make! | redraw!
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment