0

我在探查器模式下运行 vimvim --startuptime vim.log

188.898  000.073  000.073: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/perl.vim
188.991  000.063  000.063: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/php.vim
189.069  000.047  000.047: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/puppet.vim
189.143  000.045  000.045: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/python.vim
189.226  000.054  000.054: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/ruby.vim
1516.865  1327.610  1327.610: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/sass.vim
1517.095  000.170  000.170: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/sh.vim
1517.225  000.082  000.082: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/tcl.vim
1517.318  000.061  000.061: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/tex.vim
1517.397  000.048  000.048: sourcing /home/slavik/.vim/bundle/syntastic/syntax_checkers/xhtml.vim
1518.369  1331.773  002.261: sourcing /home/slavik/.vim/bundle/syntastic/plugin/syntastic.vim

并找到很长的加载 sass.vim

它来源:

if exists("loaded_sass_syntax_checker")
    finish
endif
let loaded_sass_syntax_checker = 1

"bail if the user doesnt have the sass binary installed
if !executable("sass")
    finish
endif

"use compass imports if available
let g:syntastic_sass_imports = ""
if executable("compass")
    let g:syntastic_sass_imports = system("compass imports")
endif

function! SyntaxCheckers_sass_GetLocList()
    let makeprg='sass '.g:syntastic_sass_imports.' --check '.shellescape(expand('%'))
    let errorformat = '%ESyntax %trror:%m,%C        on line %l of %f,%Z%m'
    let errorformat .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
    let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

    let bn = bufnr("")
    for i in loclist
        let i['bufnr'] = bn
    endfor

    return loclist
endfunction

这个文件有什么问题?

4

1 回答 1

1

我想你应该更新 syntastic:在 2.0.0 更新日志条目中有

只有需要的源语法检查器 - 而不是在 vim 启动时加载所有这些

于 2012-10-05T19:18:47.987 回答