2011-12-13 10:21:42 +08:00
|
|
|
"mark syntax errors with :signs
|
|
|
|
let g:syntastic_enable_signs=1
|
|
|
|
"automatically jump to the error when saving the file
|
2012-03-07 02:43:26 +08:00
|
|
|
let g:syntastic_auto_jump=0
|
2011-12-13 10:21:42 +08:00
|
|
|
"show the error list automatically
|
|
|
|
let g:syntastic_auto_loc_list=1
|
|
|
|
"don't care about warnings
|
2014-01-06 04:08:55 +08:00
|
|
|
let g:syntastic_quiet_messages = {'level': 'warnings'}
|
2015-03-25 05:17:24 +08:00
|
|
|
|
|
|
|
" 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
|