Reputation: 2889
I just installed IntelliJ CE and IdeaVim plugin.
One small popup asked about key repeating and if I want to make it enabled. But I just clicked "no" without knowing what it is asking about clearly. But it was about the moving keys: h j k l.
I cannot hold down these keys to move my cursor continuously. I've tried to revert this setting but no luck.
Most answers are either
defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false
or
defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
,
but no changes.
I am on OS X El Capitan 10.11.6 and IntelliJ IDEA CE 2016.2.4
Upvotes: 132
Views: 41398
Reputation: 1
I was using PHPStorm and had a few issues getting the above methods to work until I realized that the reference to PHPStorm had to be typed in as PhpStorm. Here is the full command that I used.
defaults write com.jetbrains.PhpStorm ApplePressAndHoldEnabled -bool false
Upvotes: -1
Reputation: 1
If this command doesn't work defaults write -g ApplePressAndHoldEnabled -bool false
Use this -->
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
Restart the app you're using like re-open the vs code etc... and it should be working.
To enable back, set to true
again and
you're good to go.
Credits: https://www.youtube.com/watch?v=NVUwif3DWuU
Upvotes: 0
Reputation: 8805
I found this gist for various different Jetbrains IDEs:
Credits go to this: https://gist.github.com/lsd/1e1826907ab7e49c536a
Community Edition IntelliJ: - defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false
Ultimate Edition IntelliJ: defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
AppCode: defaults write com.jetbrains.AppCode ApplePressAndHoldEnabled -bool false
PyCharm: defaults write com.jetbrains.PyCharm ApplePressAndHoldEnabled -bool false
Android Studio: defaults write com.google.android.studio ApplePressAndHoldEnabled -bool false
WebStorm: defaults write com.jetbrains.WebStorm ApplePressAndHoldEnabled -bool false *
RubyMine: defaults write com.jetbrains.RubyMine ApplePressAndHoldEnabled -bool false *
Upvotes: 0
Reputation: 597
@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"
Upvotes: 9
Reputation: 91
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.
Upvotes: 3
Reputation: 5201
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
Upvotes: 1
Reputation: 1120
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
Upvotes: 102
Reputation: 2889
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.
Upvotes: 155