Skip to content

Instantly share code, notes, and snippets.

@gilligan
Created March 3, 2014 15:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gilligan/9326904 to your computer and use it in GitHub Desktop.
Save gilligan/9326904 to your computer and use it in GitHub Desktop.
clint syntastic checker
if exists("g:loaded_syntastic_clint_checker")
finish
endif
let g:loaded_syntastic_clint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_clint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': '',
\ 'args_after': '' })
let errorformat = '%f:%l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'clint',
\ 'exec': 'clint.py' })
let &cpo = s:save_cpo
unlet s:save_cpo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment