Skip to content

Instantly share code, notes, and snippets.

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