amVim-for-VSCode icon indicating copy to clipboard operation
amVim-for-VSCode copied to clipboard

Holding a motion key eventually inserts the letter

Open GersonDias opened this issue 1 year ago • 1 comments

Occasionally, when holding a movement key (e.g., k), the letter itself gets inserted into the current line before the motion continues. This some times deletes the line and inserts the key and other times just inserts the letter at end of the line and seems to happen more often right after saving the file (Ctrl+S) and immediately pressing the motion key. Could this be a VSCode issue? I've only noticed it recently.

https://github.com/user-attachments/assets/11b209b0-e2e2-4b92-9a3d-987931240694

GersonDias avatar Nov 27 '24 17:11 GersonDias

I have noticed this too, or something like it, occasionally. I think it happens when amVim is having a conflict with some other extension that's trying to do something with the cursor, maybe a "format on save" or organize imports or something. I don't have a lot of time to look at this plugin (even though I use it every day at work) but I'll keep it in mind. It is perhaps something to do with async code and stacked promises not resolving in the right way.

alisonatwork avatar Dec 12 '24 04:12 alisonatwork