今天发现vscodevim插件不能连续输入方向键j, 以为是插件的问题,关闭了插件。

发现在vscode里按住j不放,编辑器并不会连续输入j

需要调整系统的dafaults关闭PressAndHold选项:

enable key-repeating

To enable key-repeating, execute the following in your Terminal, log out and back in, and then restart VS Code:

1
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false  # Enable key-repeating for vs code