Skip to content

Native display line move in insert mode #19870

@otomn

Description

@otomn

So far there is no native way of moving the cursor up or down a display line in insert mode.

Request

Allow cursor to be moved one display line up or down natively in insert mode. Using either a new command or a new keybind like i_ctrl-g g j, i_ctrl-g g k that can be mapped to.

Alternatives considered

  1. <c-o>gk, it works properly, but it triggers ModeChange and invokes other auto commands.
  2. <cmd>normal gk<cr>, it works most of the time but not when the cursor is on the last char of the line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions