Search code examples
pythonidepycharmideavim

IdeaVim plugin in pycharm doesn't support continuous scroll for long press?


The IdeaVim plugin in pycharm doesn't support continuous scroll as nor Vim or MacVim does. When you press "j" to move or any other key to move, it acts just once, instead of scrolling continuously when long pressed. Any suggestions ?


Solution

  • Yes, it's an OS problem; key repeat works fine in IdeaVIM if the OS is configured to support it.

    There's a thread discussing a change in Mac OS X Lion (10.7) that disabled key repeat, along with workarounds to turn it back on. You can either re-enable key repeat globally or per-application; the thread contains commands for both.

    To set it globally:

    defaults write -g ApplePressAndHoldEnabled -bool false
    

    To set it for IntelliJ Community Edition:

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

    IntelliJ Ultimate Edition:

    defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
    

    AppCode:

    defaults write com.jetbrains.appcode ApplePressAndHoldEnabled -bool false
    

    PhPStorm:

    defaults write com.jetbrains.phpstorm ApplePressAndHoldEnabled -bool false
    

    Android Studio:

    defaults write com.google.android.studio ApplePressAndHoldEnabled -bool false
    

    PyCharm:

    defaults write com.jetbrains.pycharm ApplePressAndHoldEnabled -bool false