Giter VIP home page Giter VIP logo

Comments (4)

skywind3000 avatar skywind3000 commented on August 24, 2024
set ttimeout ttimeoutlen=100

然后要确保你没有 map 过 ESC 这个键

from vim-init.

mengxinayan avatar mengxinayan commented on August 24, 2024

谢谢指教,我查看了项目。在 ./init/init-basic.vim 中,已经有了对功能键超时的检测。

" 打开功能键超时检测(终端下功能键为一串 ESC 开头的字符串)
set ttimeout

" 功能键超时检测 50 毫秒
set ttimeoutlen=50

同时,我并没有修改过 ./init/init-keymaps.vim 文件,我所进行的修改在配色插件和tab的配置上。

经过我的测试发现,修改 ttimeoutlen 配置的时间,好像对延迟时间并没有明显改变

我再想有没有可能因为 vim 的某些实现与 YCM 有联系而带来的问题。因为我发现两个发行版在的vim 有区别,在 vim -v 命令的输出结果中,ubuntu 18 显示的信息中多了下面一行文字。

Modified by [email protected]

上面是个人看法,还望大神多多指教!

from vim-init.

mengxinayan avatar mengxinayan commented on August 24, 2024

我用 PlugUpdate 升级了一下插件,已经极大地缓解了延迟情况。

升级插件后,通过为 ttimeoutlen 设置成不同的值后,可以感觉到有差异。如:ttimeoutlen 设置成 100、200、300、500 时,可以感觉到有差异。而当设置成小于 100 时,如:20、50、80 等,很难感觉到差异(也有可能是因为我的感知能力比较差)。但是 ttimeoutlen 设置为0时,仍然存在延迟,并且我个人感觉和设置成 50 差别不大。

from vim-init.

skywind3000 avatar skywind3000 commented on August 24, 2024

那你就二分法检查你的插件呗,屏蔽一半看看

from vim-init.

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.