7

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)

romainl
  • 186,200
  • 21
  • 280
  • 313
uber
  • 4,163
  • 5
  • 26
  • 55

1 Answers1

15

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.

Kordan Ou
  • 1,502
  • 3
  • 15
  • 25