syntastic/syntax_checkers/ruby.vim
Martin Grenfell 20f7bb0d10 initial hacks
2009-07-11 11:09:52 +12:00

16 lines
301 B
VimL

if exists("loaded_ruby_syntax_checker")
finish
endif
let loaded_ruby_syntax_checker = 1
"bail if the user doesnt have ruby installed
if !executable("ruby")
finish
endif
function! SyntaxCheckers_ruby_GetQFList()
set makeprg=ruby\ -c\ %
silent make!
return getqflist()
endfunction