VSCodeVim / VSCodeVim/Vim

Copying to clipboard in visual line and block mode does not produce same results as yanking (when pasting)

Open
#1,911 0 comments 5 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

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


BUG REPORT:

Environment:

  • VSCode Version: 1.13.1
  • VsCodeVim Version: 0.9.0
  • OS: OS X El Capital 10.11.6

What happened:
Copying to clipboard with Cmd-C in should produce the same results upon pasting as would yanking to clipboard register.

Take the following text:

one two three
one two three

Bug in Visual Line mode
Press: HV<Cmd-C>H"+P

What did you expect to happen:

The text to change to:

one two three
one two three
one two three

What happened:

one two threeone two three
one two three

Executing: HV"+yH"+P produces the correct results.

Bug in block mode:

one two three
one two three

Execute: H<C-v>ej<Cmd-c>H"+P

What did you expect to happen:

The text to change to:

oneone two three
oneone two three

What happened:

one
one
one two three
one two three

Executing: H<C-v>ej"+yH"+P produces the correct results.

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

Reproduce the visual-line and block-mode sequences in the issue, comparing Cmd-C with "+y followed by "+P. Trace the clipboard and visual-selection handling used by VSCodeVim. Done means both modes paste with the same line and block structure as yanking.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.