Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Ruby: mri

LCD 47 edited this page Jun 12, 2016 · 7 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: Martin Grenfell martin.grenfell@gmail.com

This checker will use your default ruby command, so in case that's not the version you want you can override it as follows (example for 1.9 on Debian-based systems):

let g:syntastic_ruby_exec = 'ruby1.9.1'

If using rvm/rbenv, you can pass in a path directly to the executable for the ruby version you'd prefer to use:

let g:syntastic_ruby_exec = '/usr/local/var/rbenv/versions/2.0.0-p481/bin/ruby'

Please note however that g:syntastic_ruby_exec is also used by the eruby/ruby checker. If you don't want to override the ruby executable for both checkers, you can set g:syntastic_ruby_mri_exec instead:

let g:syntastic_ruby_mri_exec = '/usr/local/var/rbenv/versions/2.0.0-p481/bin/ruby'
Clone this wiki locally