1
0
mirror of https://github.com/amix/vimrc synced 2025-07-21 03:44:59 +08:00
This commit is contained in:
huangqundl
2017-03-17 23:12:53 +08:00
parent 47b213d974
commit cba39b7326
855 changed files with 59981 additions and 35298 deletions

View File

@ -10,7 +10,7 @@
"
"============================================================================
if exists("g:loaded_syntastic_lisp_clisp_checker")
if exists('g:loaded_syntastic_lisp_clisp_checker')
finish
endif
let g:loaded_syntastic_lisp_clisp_checker = 1
@ -19,9 +19,13 @@ let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_lisp_clisp_GetLocList() dict
let tmpdir = syntastic#util#tmpdir()
let out = tmpdir !=# '.' ? ('-o ' . syntastic#util#shescape(tmpdir . syntastic#util#Slash() . 'syntastic_' . getpid())) : ''
let makeprg = self.makeprgBuild({
\ 'args_after': '-q',
\ 'fname_before': '-c' })
\ 'fname_before': '-c',
\ 'post_args_after': out })
let errorformat =
\ '%-G;%.%#,' .
@ -33,10 +37,14 @@ function! SyntaxCheckers_lisp_clisp_GetLocList() dict
\ '%Z %m,' .
\ '%-G%.%#'
return SyntasticMake({
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr('')} })
call syntastic#util#rmrf(tmpdir)
return loclist
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
@ -46,4 +54,4 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:
" vim: set sw=4 sts=4 et fdm=marker: