VSCodeVim / VSCodeVim/Vim

Some commands that use register don't work as expected

Open
#3,454 2 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

"+y, ""p, "0p don't work
The commands which are used to work with vim register have some unexpected behaviours.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'INSERT' mode
  2. Type two lines:
    123456
    xxx
  3. In Visual Block, select 123456 and press y to yank. It supposed to go to both registers "" and "0
  4. Go to begining of string xxx
  5. Remove the string by using command x 3 times. Each letter is supposed to be in "" register.

Expected behavior
In 'NORMAL' mode when I use command sequence "0p, I should get sequence 123456. Instead, I get some random lines I copied before using just a standard clipboard from another program. However, command p paste expected letter "x". So this one works.

  • Extension (VsCodeVim) version: 1.0.7
  • VSCode version: 1.30.2
  • OS: Linux CentOS 7

Additional context
Also, in Vusial Block mode, the command "+y should copy a content into system clipboard. However, ater typing +, the visual block gets changed. As such, the block is somehow inverted and selection starts from a begining of a line up to the cursor. Also next line gets selected. This is really odd.

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 reproducing the reported Visual Block register sequences: "0p, "+y, and repeated x deletions, using the listed VSCode and extension versions if available. Trace the handling of register commands and Visual Block selection, then verify that yanking populates the expected registers, "+y updates the system clipboard without altering the selection, and "0p pastes the yanked text.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.