美文网首页
Vscode vim 模式下持续按键无法移动光标

Vscode vim 模式下持续按键无法移动光标

作者: 茄茄茄 | 来源:发表于2019-06-11 13:06 被阅读0次

在使用 Macbook Pro 的时候,打开 vscode 进入到 vim 模式下之后,按住 h 、 j 、 k 、 l 均无法持续移动光标。
谷歌了一圈之后在 stackoverflow 上找到了解决办法。

打开终端,输入以下命令:

# To disable the Apple press and hold for VSCode only
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false

然后重启 Vscode

想重新恢复的话可以这样:

# To re-enable, run this command in a terminal
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true

重启 Vscode

参考:

How do I press and hold a key and have it repeat in VSCode?

相关文章

网友评论

      本文标题:Vscode vim 模式下持续按键无法移动光标

      本文链接:https://www.haomeiwen.com/subject/hpaffctx.html