Skip to content

Better default bindings for exiting insert mode #11709

@VisenDev

Description

@VisenDev

When experimenting with the default keybindings for helix, I was disappointed to find that <Esc> seemed to be the only builtin keybinding for exiting insert mode.

Due to the inconvenient placement of the escape key on most modern keyboards, almost all users of modal editors need to add a more ergonomic keybinding for <Esc> to their configuration. Whenever I use vim on an unfamiliar system, I always have to run :imap jk <Esc> to be productive.

Since one of the focuses of Helix is modern sensible defaults, it might be worthwhile to add some of the more common keybindings for exiting insert mode to helix. For example, jk orii

Vim also supports using ctrl-c to exit insert mode by default, which I find quicker to use than escape.

jk is my personal favorite way to exit insert mode, but anything that is more convenient than <Esc> would be nice to have as a default binding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions