From c637b6ea4cb5b1fbdad315efaa122cac14fc4009 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 4 Dec 2012 15:38:49 -0600 Subject: [PATCH] Add compiler plugin for haml --- compiler/haml.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 compiler/haml.vim diff --git a/compiler/haml.vim b/compiler/haml.vim new file mode 100644 index 0000000..faa1fd9 --- /dev/null +++ b/compiler/haml.vim @@ -0,0 +1,23 @@ +if exists("current_compiler") + finish +endif +let current_compiler = "haml" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal +endif + +let s:cpo_save = &cpo +set cpo-=C + +CompilerSet makeprg=haml\ -c + +CompilerSet errorformat= + \Haml\ %trror\ on\ line\ %l:\ %m, + \Syntax\ %trror\ on\ line\ %l:\ %m, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim:set sw=2 sts=2: