Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make key repeat work on Vim for VsCode?

The top answer on SO doesn't work for me.

I'm trying to navigate my file faster, but if I hold either j or k or any other vim navigation key it doesn't do the repeat command (it doesn't fly past words, it gets stuck)

like image 431
uber Avatar asked Feb 03 '26 20:02

uber


1 Answers

That works for me. Please check the instructions below:

Mac

To enable key-repeating execute the following in your Terminal and restart VS Code:

$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false         # For VS Code
$ defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
$ defaults write com.visualstudio.code.oss ApplePressAndHoldEnabled -bool false    # For VS Codium
$ defaults delete -g ApplePressAndHoldEnabled                                      # If necessary, reset global default

We also recommend increasing Key Repeat and Delay Until Repeat settings in System Preferences -> Keyboard.

Windows

Like real vim, VSCodeVim will take over your control keys. This behaviour can be adjusted with the useCtrlKeys and handleKeys settings.

like image 56
Kordan Ou Avatar answered Feb 06 '26 09:02

Kordan Ou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!