Make syntastic play nice with RVM

This commit is contained in:
Yan Pritzker
2015-03-24 16:17:24 -05:00
parent 2e53da3dcd
commit 39a812f20b
2 changed files with 17 additions and 0 deletions

View File

@@ -6,3 +6,18 @@ let g:syntastic_auto_jump=0
let g:syntastic_auto_loc_list=1
"don't care about warnings
let g:syntastic_quiet_messages = {'level': 'warnings'}
" I have no idea why this is not working, as it used to
" be a part of syntastic code but was apparently removed
" This will make syntastic find the correct ruby specified by mri
function! s:FindRubyExec()
if executable("rvm")
return system("rvm tools identifier")
endif
return "ruby"
endfunction
if !exists("g:syntastic_ruby_exec")
let g:syntastic_ruby_exec = s:FindRubyExec()
endif