Skip to content

Instantly share code, notes, and snippets.

@grauwoelfchen
Created January 23, 2013 17:03
Show Gist options
  • Save grauwoelfchen/4610039 to your computer and use it in GitHub Desktop.
Save grauwoelfchen/4610039 to your computer and use it in GitHub Desktop.
if &filetype == "ruby"
"" syntax check
compiler ruby
setlocal makeprg=ruby\ -c\ %
augroup syntax_check
autocmd!
autocmd BufWritePost <buffer> silent make! -c % | redraw!
augroup END
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment