ZIm/crates/vim/test_data/test_undo_last_line_newline.json
Conrad Irwin 8e8a772c2d
vim: Add U to undo last line (#33571)
Closes #14760

Still TODO:

* Vim actually undoes *many* changes if they're all on the same line.

Release Notes:

- vim: Add `U` to return to the last changed line and undo
2025-07-08 21:24:43 -06:00

15 lines
448 B
JSON

{"Put":{"state":"ˇfn a() { }\nfn a() { }\nfn a() { }\n"}}
{"Key":"shift-g"}
{"Key":"k"}
{"Get":{"state":"fn a() { }\nfn a() { }\nˇfn a() { }\n","mode":"Normal"}}
{"Key":"o"}
{"Key":"h"}
{"Key":"e"}
{"Key":"l"}
{"Key":"l"}
{"Key":"o"}
{"Key":"escape"}
{"Get":{"state":"fn a() { }\nfn a() { }\nfn a() { }\nhellˇo\n","mode":"Normal"}}
{"Key":"shift-u"}
{"Get":{"state":"fn a() { }\nfn a() { }\nfn a() { }\nˇ\n","mode":"Normal"}}
{"Key":"shift-u"}