Search code examples
pycharmideavim

How to use {hjkl} to repeatedly move cursor in ideavim


I am using the ideavim plugin for PyCharm (mac), but it seems that I cannot move the cursor continuously with {hjkl}. When I press down the keys, it can only make one move and then stuck. But what I expect is it moves repeatedly like using arrow keys. What should I do?


Solution

  • I found a similar problem related to sublime. Here is the answer to that question: https://gist.github.com/kconragan/2510186

    Therefore, what I should do in my case is just to type in terminal:

    defaults write com.jetbrains.pycharm ApplePressAndHoldEnabled -bool false
    

    Restart PyCharm and that's it!