0
我在探查模式vim --startuptime vim.log
VIM sass.vim加載時間
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
啓動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
什麼不對的文件?
你檢查'system()'的時間?我想外部可執行文件可能是一個問題。 –
你確定病原體在做它的工作嗎?所有這些跳棋不應該在啓動時加載:只有'syntastic.vim'。 – romainl
@romainl你爲什麼認爲它是病原體? Vundle [保存在同一位置](https://github.com/gmarik/vundle/blob/3bf598d169993d703c21115876c36e460a51b100/doc/vundle.txt#L88),VAM可以[配置](https://github.com/MarcWeber /vim-addon-manager/blob/c30898da4681779e6b81bf9dfdd2a1262d817ee8/doc/vim-addon-manager-additional-documentation.txt#L216)做同樣的事情。 – ZyX