IntelliJ key repeating idea.vim

Solution 1:

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:

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