Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paragraph-wise yank and paste inserts paragraph before/after current character, instead of current line. #8065

Open
antomaly opened this issue Oct 27, 2022 · 0 comments

Comments

@antomaly
Copy link

Describe the bug
When yanking and pasting paragraphs, P pastes the paragraph before the current character, rather than before the current line.

To Reproduce
Steps to reproduce the behavior:

In a file with content

Paragaph one
more paragraph one

Paragaph two
more paragraph two

Paragaph three
more paragraph three

Paragaph four
more paragraph four
  1. Put the cursor in paragraph three.
  2. Hit vapy to yank the entire paragraph.
  3. Put the cursor in the middle of the first line of paragraph two:
    image
  4. Hit P to paste the yanked paragraph.
  5. A copy of paragraph three is inserted before the current character:
    image

Expected behavior
A copy of paragraph three is inserted before the current line:
image

Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.24.1
  • VSCode version: 1.72.2
  • OS: Intel Mac OS X 10_15_7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant