Skip to content

Vim editor mode: add visual mode (v/V) for selecting and deleting text #5477

Backlog

Description

@aidangannon

Follow-up to #13, which was closed after vim mode shipped (/settings editorMode vim), but visual mode is still missing. I asked about it there and got no response.

Problem

Normal and insert modes work, but pressing v in normal mode does nothing, so there is no way to select text. For example, this sequence doesn't work:

ESC -> b -> v -> w -> d

This makes the vim mode close to unusable for me. Selecting a chunk of the prompt and deleting or changing it is one of the main reasons to use vim mode, and Claude Code supports it.

Requested behaviour

  • v enters characterwise visual mode, and V enters linewise visual mode.
  • Motions (w, b, e, 0, $, h/j/k/l) extend the selection, with the selection visibly highlighted.
  • Operators d, c, y act on the selection, and ESC leaves visual mode.

Version

Tested on 1.0.84 and later with editorMode set to vim.

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

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions