Skip to content

Holding down navigation keys (H, J, K, L) doesn't repeat them #342

@alexvanu

Description

@alexvanu

In command-line Vim (normal mode), when I want to navigate a file, I can simply hold down the 'J' key and navigate downwards until the end of the file (holding down repeats the command). The issue with MacVim is that I hold down the 'J' key and it only works for one row. This means I have to keep tapping the key over and over to navigate downwards. The arrow keys work fine, only the navigation keys ('H', 'J', 'K' and 'L') seem to be affected. Also, using 'ctrl-B' and 'ctrl-F' works as expected and I get to the bottom of the document without having to constantly tap.

I know there's an issue (erm… feature) with OSX ever since Lion and holding down a key shows key alternatives instead of repeating (see http://osxdaily.com/2011/08/04/enable-key-repeat-mac-os-x-lion/) but this is not my problem. I've already deactivated the OSX pop-up. And when in insert mode I can just hold down 'J' and it repeats automatically.

If anything about my description was unclear, or if there are any questions, please ask. I really use MacVim a lot and would be thankful for a fix.

My System:

  • MacBook Pro (Retina, 13-inch, Early 2015),
  • OSX El Capitan, Version 10.11.6 (15G31)
  • MacVim, Version 7.4 (107) - tested with an empty .vimrc file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions