VSCodeVim / VSCodeVim/Vim

Support `cpoptions` or at least a way to repeat yank commands

Open
#6,279 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
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.
I want to be able to repeat yank commands, for example to comfortably append to the same register

Describe the solution you'd like
I want to type once "AyiW and then be able to repeat using .

Describe alternatives you've considered
Seems that normal vim has an option cpoptions, which allows this kind of repeat. I am ok with either supporting this more general usecase or just the feature I described.

Additional context
https://vi.stackexchange.com/a/18447/27445

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

No file or test is named in the issue. Start by locating the handling for the repeat command . and for yank/register commands, then compare the "AyiW followed by . behavior with existing tests. Done means repeated yank commands append to the same register as requested, or the supported cpoptions behavior is clearly defined and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.