IntelliJ 键重复创意

我刚刚安装了 IntelliJ CEIdeVim插件。

一个小弹出窗口询问关于键重复,如果我想使它启用。但是我只是点击了“不”,并不知道它清楚地询问了什么。 但这是关于移动的钥匙: h j k l

我不能按住这些键不断移动光标。 我试图恢复这个设置,但没有运气。

大多数答案都是 defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false 或者 defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false, 但是没有变化。

我在 OS X El Capitan 10.11.6和 IntelliJ IDEA CE 2016.2上

22056 次浏览

it turns out that I need to type this in the mac terminal:

defaults write -g ApplePressAndHoldEnabled -bool false

This is not related with any of vim, intelliJ, etc. It seems that Mac wants to support accent characters by holding the key.

you can enable key repeating per application

for Intellij Ultimate edition

defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false

for Intellij community edition

defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false

ref https://intellij-support.jetbrains.com/hc/en-us/community/posts/206845385-FYI-for-Lion-users-who-use-IdeaVIM

if anyone else was confused what the message from pycharm meant, but lets read it first:

Do you want to enable repeating keys in Mac OS X on press and hold?

what it means is that if you keep pressing the same key it is as if it is pressing it many times (the expected behaviour). That is all.

I might not be a vim expert but I personally wouldn't want the keyboard to act different from what I am used to so I suggest to press yes.

If you are too late and can't fix it do what the other answers suggest e.g.

for Intellij Ultimate edition

defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false

for Intellij community edition

defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false

If you've already set the global value with the defaults write -g command (or JetBrains did it for you), it may be necessary to delete the global default before you can use an application-specific default as noted in this SuperUser post.

defaults delete -g ApplePressAndHoldEnabled

After I did that and set an application-specific value for RubyMine...

defaults write com.jetbrains.rubymine ApplePressAndHoldEnabled -bool true

...I could use IdeaVim in RubyMine and still use the press and hold accent dialog in all other applications.

@aaronpenne's 2020 comment is too useful to be just a comment. His was the only suggestion that worked:

FYI I just installed IdeaVim and the popup says "You can do it manually by running defaults write -g ApplePressAndHoldEnabled 0"