syntastic/syntax_checkers/ruby.vim

16 lines
301 B
VimL
Raw Normal View History

2009-07-10 19:09:52 -04:00
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