pit-ray / win-vind

You can operate Windows with key bindings like Vim.
https://pit-ray.github.io/win-vind/
MIT License
1.87k stars 45 forks source link

[Question] How to speed up the responsive in EDI NORMAL mode #243

Open xib opened 4 months ago

xib commented 4 months ago

Question In Edi Normal mode, I notice the cursor movement is not as fast as normal (without win-vind). I understand there could be some overhead win-vind cause to read the key stroke, process, waiting..., but the cursor movement is a bit too slow in my Windows PC. Is there anything can be configured to reduce the delay?

Note: I frequently keep pressing h, j, k, l to move around a text file and it's slow.

pit-ray commented 2 months ago

Currently, the speed of key entry is fixed. If possible, could you please optimize for the best number of seconds and send me the pull request?

https://github.com/pit-ray/win-vind/blob/b68bc03c5992519dba5a7ee86c124f0cf44afca9/src/util/keystroke_repeater.cpp#L44-L45

Thanks!