gpt4 book ai didi

vim - 更改光标的保持时间?

转载 作者:行者123 更新时间:2023-12-03 13:55:18 24 4
gpt4 key购买 nike

使用事件触发器时 CursorHoldI我发现执行命令大约需要3秒钟。

有没有办法减少这个时间?

最佳答案

来自 :help CursorHoldI :

Just like CursorHold, but in Insert mode. [..]

然后从 :help CursorHold :
CursorHold                      When the user doesn't press a key for the time
specified with 'updatetime'.
[..]
updatetime 的默认值是 4000(4 秒);您可以将其更改为 1 秒之类的内容:
set updatetime=1000

请注意,非常低的值可能会降低 Vim 的运行速度,例如 CursorHold命令可能比较昂贵。它也用于写入交换文件

关于vim - 更改光标的保持时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41416072/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com