Skip to content

Fixed: Visual mode and arrow keys not working #287

Closed

Description

@skollgrim

When in visual mode pressing the arrow keys does not actually select text the same way using hjkl does. This was on version 2.8.0.

Activity

  1. added
    bug
    on Jun 29, 2026
  2. adibhanna commented on Jun 29, 2026

    @adibhanna
    Contributor

    Fixed in 99f2314 (on the release/v2.9.0 branch).

    In Vim mode the arrow keys were running CodeMirror's native caret motions instead of Vim's <Left>/<Right>/<Up>/<Down> → h/l/k/j motions. So in visual mode they just moved the caret and collapsed the selection instead of extending it. (Plain hjkl had no competing keybinding, which is exactly why they worked while the arrows didn't.)

    The arrow keys now defer to Vim in normal/visual mode — so they extend the selection just like hjkl — while still moving the caret normally in insert mode and when Vim is off.

    This will ship in v2.9.0. Thanks for the report! 🙏

  3. skollgrim commented on Jun 29, 2026

    @skollgrim
    Author

    Brilliant, cheers!

  4. changed the title [-]Visual mode and arrow keys not working[/-] [+]Fixed: Visual mode and arrow keys not working[/+] on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions