1
0
mirror of https://github.com/amix/vimrc synced 2025-06-24 07:44:59 +08:00

Updated plugins

This commit is contained in:
amix
2015-01-18 12:58:28 +00:00
parent c3ba0f3c06
commit e7a01094b6
274 changed files with 4547 additions and 3075 deletions

View File

@ -18,7 +18,7 @@ let g:loaded_syntastic_vim_vimlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_vim_vimlint_GetHighlightRegex(item)
function! SyntaxCheckers_vim_vimlint_GetHighlightRegex(item) " {{{1
let term = matchstr(a:item['text'], '\m `\zs[^`]\+\ze`')
if term != ''
let col = get(a:item, 'col', 0)
@ -33,17 +33,17 @@ function! SyntaxCheckers_vim_vimlint_GetHighlightRegex(item)
endif
return ''
endfunction
endfunction " }}}1
function! SyntaxCheckers_vim_vimlint_IsAvailable() dict
let vimlparser = globpath(&runtimepath, 'autoload/vimlparser.vim')
let vimlint = globpath(&runtimepath, 'autoload/vimlint.vim')
call self.log("globpath(&runtimepath, 'autoload/vimlparser.vim') = " . string(vimlparser) . ', ' .
\ "globpath(&runtimepath, 'autoload/vimlint.vim') = " . string(vimlint))
function! SyntaxCheckers_vim_vimlint_IsAvailable() dict " {{{1
let vimlparser = globpath(&runtimepath, 'autoload/vimlparser.vim', 1)
let vimlint = globpath(&runtimepath, 'autoload/vimlint.vim', 1)
call self.log("globpath(&runtimepath, 'autoload/vimlparser.vim', 1) = " . string(vimlparser) . ', ' .
\ "globpath(&runtimepath, 'autoload/vimlint.vim', 1) = " . string(vimlint))
return vimlparser != '' && vimlint != ''
endfunction
endfunction " }}}1
function! SyntaxCheckers_vim_vimlint_GetLocList() dict
function! SyntaxCheckers_vim_vimlint_GetLocList() dict " {{{1
" EVL102: unused variable v
" EVL103: unused argument v
" EVL104: variable may not be initialized on some execution path: v
@ -74,11 +74,13 @@ function! SyntaxCheckers_vim_vimlint_GetLocList() dict
endif
endif
return vimlint#vimlint(expand('%'), param)
endfunction
return vimlint#vimlint(expand('%', 1), param)
endfunction " }}}1
" Utilities {{{1
" @vimlint(EVL103, 1, a:filename)
function! s:vimlintOutput(filename, pos, ev, eid, mes, obj)
function! s:vimlintOutput(filename, pos, ev, eid, mes, obj) " {{{2
call add(a:obj.error, {
\ 'bufnr': bufnr(''),
\ 'lnum': a:pos.lnum,
@ -87,9 +89,11 @@ function! s:vimlintOutput(filename, pos, ev, eid, mes, obj)
\ 'type': a:ev[0],
\ 'text': '[' . a:eid . '] ' . a:mes,
\ 'valid': a:pos.lnum > 0 })
endfunction
endfunction " }}}2
" @vimlint(EVL103, 0, a:filename)
" }}}1
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'vim',
\ 'name': 'vimlint',
@ -98,4 +102,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: