首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vim sass.vim加载时间

vim sass.vim加载时间
EN

Stack Overflow用户
提问于 2012-10-04 22:58:38
回答 1查看 247关注 0票数 0

我在profiler模式下运行vim vim --startuptime vim.log

代码语言:javascript
复制
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

并找到非常长的load sass.vim

It来源:

代码语言:javascript
复制
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

这个文件有什么问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-06 03:18:48

我想您应该更新syntastic:在2.0.0的changelog条目中有

只在需要时使用源语法检查器-而不是在vim启动

时加载所有语法检查器

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12730137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档