ZIm/crates/vim/test_data/test_r.json
AidanV c56a1cf2b1
vim: Fix r enter indentation (#29838)
Release Notes:

- `r enter` now maintains indentation, matching vim

Useful info for this implementation can be found here:

c3f48e3a76/src/normal.c (L4865)
2025-05-05 16:57:32 +01:00

40 lines
912 B
JSON

{"Put":{"state":"ˇhello\n"}}
{"Key":"r"}
{"Key":"-"}
{"Get":{"state":"ˇ-ello\n","mode":"Normal"}}
{"Put":{"state":"ˇhello\n"}}
{"Key":"3"}
{"Key":"r"}
{"Key":"-"}
{"Get":{"state":"--ˇ-lo\n","mode":"Normal"}}
{"Put":{"state":"ˇhello\n"}}
{"Key":"r"}
{"Key":"-"}
{"Key":"2"}
{"Key":"l"}
{"Key":"."}
{"Get":{"state":"-eˇ-lo\n","mode":"Normal"}}
{"Put":{"state":"ˇhello world\n"}}
{"Key":"2"}
{"Key":"r"}
{"Key":"-"}
{"Key":"f"}
{"Key":"w"}
{"Key":"."}
{"Get":{"state":"--llo -ˇ-rld\n","mode":"Normal"}}
{"Put":{"state":"ˇhello world\n"}}
{"Key":"2"}
{"Key":"0"}
{"Key":"r"}
{"Key":"-"}
{"Key":""}
{"Get":{"state":"ˇhello world\n","mode":"Normal"}}
{"Put":{"state":" helloˇ world\n"}}
{"Key":"r"}
{"Key":"enter"}
{"Get":{"state":" hello\n ˇ world\n","mode":"Normal"}}
{"Put":{"state":" helloˇ world\n"}}
{"Key":"2"}
{"Key":"r"}
{"Key":"enter"}
{"Get":{"state":" hello\n ˇ orld\n","mode":"Normal"}}