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

d2} deletes only one paragraph. #4488

Closed
toriwasa opened this issue Jan 11, 2020 · 2 comments · Fixed by #4527
Closed

d2} deletes only one paragraph. #4488

toriwasa opened this issue Jan 11, 2020 · 2 comments · Fixed by #4527
Labels

Comments

@toriwasa
Copy link

toriwasa commented Jan 11, 2020

Describe the bug

d2} deletes only one paragraph.

To Reproduce
Steps to reproduce the behavior:

  1. Write a multi-paragraph document.
  2. Move the cursor to the beginning of the first line.
  3. Enter d2} in normal mode.
  4. Only one paragraph will be deleted.

Example:

|aaa
aaa

bbb
bbb

then Enter d2}

|
bbb
bbb

Expected behavior
d2} deletes two paragraphs.

Screenshots
screenshots_gif

d2} deletes only one paragraph.
d2{ deletes two paragraphs.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.12.4
  • VSCode version: 1.41.1(user setup)
  • OS: Windows 10 Ver1903 build 18362.535

Additional context

y2} and c2} also edit only one paragraph.
d3} deletes two paragraphs.
d4} deletes two paragraphs.
d5} deletes three paragraphs.

@J-Fields
Copy link
Member

Same for 2d}.

@cvaldev
Copy link
Contributor

cvaldev commented Jan 30, 2020

I looked into this and I found that doing d2} not at the beginning of line works as expected, sort of. I say 'sort of' because the extension doesn't respect the cursor position and deletes the whole entire line, which is not what regular Vim does. The source of the issue appears to be from the } move, I think I have a solution for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants