Created
July 7, 2011 17:27
-
-
Save oppara/1070049 to your computer and use it in GitHub Desktop.
css flyquickfixmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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