VSCodeVim / VSCodeVim/Vim

Enable "let" command to assign registers

Open
#9,312 0 comments 1 reaction 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

Currently :let @1 = @2 is not supported, because it's not implemented: https://github.com/VSCodeVim/Vim/blob/4cf03602a314cf0c5758dece19f98f28dc2be6ae/src/cmd_line/commands/let.ts#L146

I'd like to implement let assignment of registers.

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 in src/cmd_line/commands/let.ts around line 146, where register assignment is noted as unimplemented. Trace how the :let command parses assignments and how registers are represented, then implement support for assigning one register to another. Done means :let @1 = @2 is accepted and performs the requested assignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
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.