zed/crates/vim/src
Xiaobo Liu c98f1cbe1a
vim: Set [ and ] marks to paste destination (#56593)
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.


Closes https://github.com/zed-industries/zed/issues/56404

Release Notes:

- vim: Made `[` and `]` marks point to the start and end of pasted text
after a paste operation.

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: Tom Houlé <tom@tomhoule.com>
2026-07-22 11:37:17 +00:00
..
digraph
helix vim: Remap cursor position with display_point (#60755) 2026-07-13 10:11:29 +00:00
normal vim: Set [ and ] marks to paste destination (#56593) 2026-07-22 11:37:17 +00:00
test
change_list.rs
command.rs editor: Fix panic when restoring empty selections on undo/redo (#59372) 2026-07-02 13:07:42 +00:00
digraph.rs
helix.rs vim: Fix selection motions when trailing newline is selected (#61253) 2026-07-20 03:19:55 +00:00
indent.rs
insert.rs
mode_indicator.rs
motion.rs
normal.rs editor: Fix panic when restoring empty selections on undo/redo (#59372) 2026-07-02 13:07:42 +00:00
object.rs
replace.rs
rewrap.rs
state.rs picker: Simplify presentation and sizing APIs, add preview-aware defaults (#59719) 2026-06-23 09:33:47 +00:00
surrounds.rs
test.rs editor: Use raw head selection for rename (#60594) 2026-07-08 14:19:58 +00:00
vim.rs Improve helix keymap (#59638) 2026-06-30 09:51:07 +00:00
visual.rs vim: Fix selection motions when trailing newline is selected (#61253) 2026-07-20 03:19:55 +00:00