Giter Site home page Giter Site logo

A bit of a lag when you first time enter insert mode (首次进入插入模式时可能会感到些许的停顿或延迟) about space-vim HOT 5 CLOSED

liuchengxu avatar liuchengxu commented on July 3, 2024
A bit of a lag when you first time enter insert mode (首次进入插入模式时可能会感到些许的停顿或延迟)

from space-vim.

Comments (5)

monkeydterry avatar monkeydterry commented on July 3, 2024

我也是这样,解决方案大概只有不用ycm了...

from space-vim.

liuchengxu avatar liuchengxu commented on July 3, 2024

@monkeydterry 也不至于吧...., 只是在首次进入插入模式时会有一丢丢的延迟,但比起它能够提供的强大功能还是值得的. 可能会有更好的解决方案的,总要有所期待嘛 😹

from space-vim.

zgqq avatar zgqq commented on July 3, 2024

首次i很慢,应该是懒加载的锅

from space-vim.

liuchengxu avatar liuchengxu commented on July 3, 2024

@zgqq
ultisnips 是在首次进入插入模式时加载,YouCompleteMe 是针对一些文件类型 ( https://github.com/liuchengxu/space-vim/blob/master/layers/%2Btools/ycmd/packages.vim#L15 ) , 比如 c, python, shell 等等在首次进入插入模式时加载。

这是有意为之,主要是想保持启动速度,因为 ultisnips 与 YouCompleteMe 对 vim 的启动速度影响比较大,大概有几百毫秒,已经可以感知到差别。这么延迟加载能够使得空 vim 的启动时间在 200 ms, 甚至是 150 ms 以下 (大概 60 个左右的插件)。

如果不希望 lazy loading,能够接受 vim 启动不那么迅速的话,也是可以选择取消的。Exclude 以后再把这两个当做是 private plugin 放到 UserInit() 中就好了。

因为还没有两全其美的方法,所以目前的方案只能是这样。希望以后会有新的解决方式。

from space-vim.

liuchengxu avatar liuchengxu commented on July 3, 2024

I have switched from YCM to completor.vim and nvim-completion-manager for quite a while. These two auto-completion plugins are really great, utterly fast and lightwight. Now, it's sufficient to only have auto-completion layer enabled.

from space-vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.