Some commands that use register don't work as expected
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:
- Go to 'INSERT' mode
- Type two lines:
123456
xxx - In Visual Block, select
123456and pressyto yank. It supposed to go to both registers "" and "0 - Go to begining of string
xxx - Remove the string by using command
x3 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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