Skip to content

Vim - Bug with end of paragraph (d}) deletion #29393

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

Open
dinocosta opened this issue Apr 25, 2025 · 0 comments · May be fixed by #29490
Open

Vim - Bug with end of paragraph (d}) deletion #29393

dinocosta opened this issue Apr 25, 2025 · 0 comments · May be fixed by #29490

Comments

@dinocosta
Copy link
Contributor

dinocosta commented Apr 25, 2025

Summary

When using the d} command, if there's no new line at the end of the buffer, the last character will be left behind. The same command, in vim, would delete all lines.

Steps to reproduce:

  1. Create new file with workspace: new file
  2. Write two lines of text, for example, This is\ntwo lines
  3. Move the cursor to the first column of the first row, location 1:1 on the bottom right
  4. Press d} to delete until the end of the paragraph
  5. Confirm that the s from lines is not deleted

Expected Behavior: All lines are deleted, regardless of whether a new line exists at the end of the file
Actual Behavior: The last character is not deleted

Screencast

Vim
vim.mov
Zed
zed.mov

Zed Version and System Specs

Zed: v0.183.10 (Zed)
OS: macOS 15.3.2
Memory: 16 GiB
Architecture: aarch64

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

Successfully merging a pull request may close this issue.

1 participant