zed icon indicating copy to clipboard operation
zed copied to clipboard

Fix "j" key latency in vim mode with "j k" keymap

Open deand0n opened this issue 9 months ago • 2 comments

Problem: Initial keymap has "j k" keymap, which if uncommented will add +-1s delay to every "j" key press This workaround was taken from https://github.com/zed-industries/zed/discussions/6661

Release Notes:

  • N/A or Added/Fixed/Improved ...

deand0n avatar May 22 '25 08:05 deand0n

Thanks! Added a commit to switch it from SendKeystrokes to vim::SwitchToNormalMode. This is an improvement, but I don't think this solves the input delay? AFAIK there is no current solution for the input delay.

mgsloan avatar May 29 '25 22:05 mgsloan

Thanks! adding the vim_mode = insert is important to prevent slowness in normal mode.

https://github.com/zed-industries/zed/pull/32007 has a potential fix to show the j immediately in insert mode. (thanks @little-dude!)

ConradIrwin avatar Jun 03 '25 18:06 ConradIrwin