极限输入速度


1

是否可以限制vim本身(而非os)中输入的速度?

通过缓慢的网络连接进行模拟编辑会话。


也许在插入模式下绑定每个键以切换到编辑模式,然后返回到插入模式并插入字符:)
Michael

Answers:


5

您可以执行以下操作:

:autocmd CursorMoved,CursorMovedI * :sleep 200m

每当光标在正常或插入模式下移动时,Vim就会暂停200毫秒。这不适用于:-命令行或其他一些上下文。

看到:

:help :autocomd
:help CursorMoved
:help :sleep
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.