vim sass.vim加载时间

vim sass.vim加载时间,vim,time,load,profiling,Vim,Time,Load,Profiling,我在探查器模式下运行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

我在探查器模式下运行vim
vim--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

这个文件怎么了?

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

仅根据需要加载源语法检查器,而不是在vim启动时加载所有的源语法检查器


您是否检查了
系统()
时间?我想外部可执行文件可能是个问题。你确定病原体正在发挥作用吗?所有这些检查都不应该在启动时加载:只有
syntastic.vim
@romainl为什么你认为它是病原体?Vundle,VAM也可以做同样的事情。当然,你是对的,但是病原体是引入了
~/.vim/bundle
目录IIRC的,所以我选择了最低限度的结果。我应该写“你的插件管理器”。@romainl我做了一些研究(我知道没有插件管理器会从非标准目录加载一些东西),似乎OP使用的是过时的syntastic版本(至少)