VSCodeVim / VSCodeVim/Vim

Replace mode: Replace with register

Open
#8,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
As a user, I want to be able to paste over text, as described here, to keep the alignment of the line, as opposed to inserting text.

Describe the solution you'd like
This config

    "vim.replaceModeKeyBindings": [
        {
            "before": ["<C-r>"],
            "commands": ["extension.vim_ctrl+r"]
        }
    ]

should work like <C-r> in insert mode (insertModeKeyBindings) but for replace mode (entered with R) so that register contents are pasted over text instead of inserting it. But replaceModeKeyBindings does not exist although a replace mode is available via R.

Describe alternatives you've considered

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how replace mode and insertModeKeyBindings are handled in the TypeScript extension. Add support for replaceModeKeyBindings so Ctrl-R can use register contents in replace mode, then verify that the contents overwrite existing text rather than insert it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.