使用事件触发器时 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/