Re: [vim ] 测试套件占用的资源

楼主: kusoayan (Bert)   2015-01-18 09:42:26
我猜你说的是 plugins?
这里提供几个方法
1. 改用 lazy loading:
Vundle 好像还没提供(至少我还在用的时候没有)
NeoBundle 有,但是功能有点太复杂
个人推荐 vim-plug(https://github.com/junegunn/vim-plug)
基本上就是根据 mode,还有语言来 on-demand 的 load plugins
例如像 YCM 很花时间,我就改成在第一次进入 insert mode 再加载
2. 可能会重复的 autocmd 请用 augroup 包起来
3. 利用 vim 内建的 profiling 工具来分析
vim

Links booklink

Contact Us: admin [ a t ] ucptt.com