IntelliJ key repeating idea.vim
VimIntellij 13Vim Problem Overview
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
Vim Solutions
Solution 1 - Vim
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.
Solution 2 - Vim
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
Solution 3 - Vim
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
Solution 4 - Vim
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.