ZIm/crates/vim/src
Conrad Irwin bffde43c12
Improve vim undo (#9317)
The important change here is to ensure that undo never lands you in
visual mode; but we also take care to restore the selection the same way
vim does (visual line goes to beginning of line, visual block to the top
left, etc.).

To help make this behaviour feel right we also group any deletions that
started insert mode with the first text inserted.

Fixes: #7521

Release Notes:

- vim: Improved undo. It will now restore you to normal mode in the same
position as vim, and group deletions caused by `c` or `s` with the
concomitant insert.
([#7521](https://github.com/zed-industries/zed/issues/7521)).
2024-03-13 23:12:12 -06:00
..
normal vim: subword motions (#8725) 2024-03-07 19:36:12 -07:00
test vim: subword motions (#8725) 2024-03-07 19:36:12 -07:00
command.rs Enable clippy::useless_conversion (#8767) 2024-03-03 10:22:55 -05:00
editor_events.rs Improve vim undo (#9317) 2024-03-13 23:12:12 -06:00
insert.rs vim: Keep multi-cursor on escape (#8464) 2024-02-26 22:54:02 -07:00
mode_indicator.rs vim: Fix some problems with visual mode testing (#8461) 2024-02-26 20:15:27 -07:00
motion.rs vim: smartcase find option (#9033) 2024-03-07 19:44:20 -07:00
normal.rs vim: smartcase find option (#9033) 2024-03-07 19:44:20 -07:00
object.rs vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00
state.rs Improve vim undo (#9317) 2024-03-13 23:12:12 -06:00
test.rs Improve vim undo (#9317) 2024-03-13 23:12:12 -06:00
utils.rs Add option to either use system clipboard or vim clipboard (#7936) 2024-02-22 10:12:29 -07:00
vim.rs Improve vim undo (#9317) 2024-03-13 23:12:12 -06:00
visual.rs vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00