VSCodeVim / VSCodeVim/Vim

Yank needs to grab initial newline, the char cursor is on.

Open
#2,708 0 comments 2 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

**Is this a BUG REPORT

Steps:

Top Line, yank from following blank line.

Text to yank "y/^$\n"

Past while on this line "p"

Result:

Top Line, yank from following blank line.

Text to yank "y/^$\n"

Past while on this line "p"
Text to yank "y/^$\n"

Expected result:

Top Line, yank from following blank line.

Text to yank "y/^$\n"

Past while on this line "p"

Text to yank "y/^$\n"
  • Extension (VsCodeVim) version: 0.12.0
  • VSCode version: 1.23.1-1525968397
  • OS version: Debian GNU/Linux 9.4 (stretch)

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 yank and paste sequence in VSCodeVim 0.12.0 on the reported VSCode setup, then trace the yank handling from the relevant keybinding entry point. Done means pasting after the blank line preserves that initial newline, matching the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
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.