commit bd3e07126666808b0969fc07d9d8d5216aa4199e
parent d878e337ccb3a7012e9e8328e6e94035340b22b7
Author: Daniel Moch <daniel@danielmoch.com>
Date: Sat, 21 May 2016 15:39:00 -0400
Add csslint.vim
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1 +0,0 @@
-tags
diff --git a/compiler/csslint.vim b/compiler/csslint.vim
@@ -0,0 +1,16 @@
+" Vim compiler file
+" Compiler: csslint for CSS
+" Maintainer: Daniel Moch <daniel@danielmoch.com>
+" Last Change: 2016 May 21
+
+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
+
+CompilerSet makeprg=csslint\ --format=compact
+CompilerSet errorformat=%-G,%-G%f:\ lint\ free!,%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %m