Skip to content

vim: Set [ and ] marks to paste destination#56593

Open
cppcoffee wants to merge 1 commit into
zed-industries:mainfrom
cppcoffee:vim-normal-paste-mark
Open

vim: Set [ and ] marks to paste destination#56593
cppcoffee wants to merge 1 commit into
zed-industries:mainfrom
cppcoffee:vim-normal-paste-mark

Conversation

@cppcoffee
Copy link
Copy Markdown
Contributor

Previously, the [ and ] marks always pointed to the yank source location. After a paste operation, they now correctly point to the start and end of the pasted text in the destination buffer.

This enables workflows like v]to select just-pasted text, and fixes thegp` keymap pattern shown in the issue.

Closes #56404

Release Notes:

  • N/A or Added/Fixed/Improved ...

Previously, the `[` and `]` marks always pointed to the yank source
location. After a paste operation, they now correctly point to the
start and end of the pasted text in the destination buffer.

This enables workflows like `v`]` to select just-pasted text, and
fixes the `gp` keymap pattern shown in the issue.

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 13, 2026
@ChristopherBiscardi ChristopherBiscardi added the area:parity/vim Feedback for Vim parity features label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:parity/vim Feedback for Vim parity features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vim: [ and ] marks point to yank source instead of paste destination

2 participants