From 1a1593a6fda41a520f5ba29d18e417d73be93209 Mon Sep 17 00:00:00 2001 From: kongo2002 Date: Sun, 26 Dec 2010 10:12:59 +0800 Subject: [PATCH] don't set RUBYOPT on windows --- syntax_checkers/ruby.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/ruby.vim b/syntax_checkers/ruby.vim index b15decab..9d87d2f4 100644 --- a/syntax_checkers/ruby.vim +++ b/syntax_checkers/ruby.vim @@ -20,7 +20,12 @@ if !executable("ruby") endif function! SyntaxCheckers_ruby_GetLocList() - let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%')) + " we cannot set RUBYOPT on windows like that + if has('win32') || has('win64') + let makeprg = 'ruby -W1 -T1 -c '.shellescape(expand('%')) + else + let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%')) + endif let errorformat = '%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%-C%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })