vim cl (#11641)
Release Notes: - vim: Added support for the changelist. `g;` and `g,` to the previous/next change - vim: Added support for the `'.` mark - vim: Added support for `gi` to resume the previous insert
This commit is contained in:
parent
4f9ba28a25
commit
45f12b9426
10 changed files with 326 additions and 10 deletions
16
crates/vim/test_data/test_change_list_delete.json
Normal file
16
crates/vim/test_data/test_change_list_delete.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{"Put":{"state":"one two\nthree fˇour"}}
|
||||
{"Key":"x"}
|
||||
{"Key":"k"}
|
||||
{"Key":"d"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Key":"^"}
|
||||
{"Key":"x"}
|
||||
{"Get":{"state":"ˇne \nthree fur","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
||||
{"Get":{"state":"ne \nthree fˇur","mode":"Normal"}}
|
||||
{"Key":"g"}
|
||||
{"Key":","}
|
||||
{"Get":{"state":"ˇne \nthree fur","mode":"Normal"}}
|
32
crates/vim/test_data/test_change_list_insert.json
Normal file
32
crates/vim/test_data/test_change_list_insert.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{"Put":{"state":"ˇ"}}
|
||||
{"Key":"i"}
|
||||
{"Key":"1"}
|
||||
{"Key":"1"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"shift-o"}
|
||||
{"Key":"2"}
|
||||
{"Key":"2"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"shift-g"}
|
||||
{"Key":"o"}
|
||||
{"Key":"3"}
|
||||
{"Key":"3"}
|
||||
{"Key":"escape"}
|
||||
{"Get":{"state":"22\n11\n3ˇ3","mode":"Normal"}}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
||||
{"Key":"g"}
|
||||
{"Key":","}
|
||||
{"Key":"shift-g"}
|
||||
{"Key":"i"}
|
||||
{"Key":"4"}
|
||||
{"Key":"4"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
||||
{"Key":"g"}
|
||||
{"Key":";"}
|
8
crates/vim/test_data/test_dot_mark.json
Normal file
8
crates/vim/test_data/test_dot_mark.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{"Put":{"state":"one two\nthree fˇr"}}
|
||||
{"Key":"i"}
|
||||
{"Key":"o"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"k"}
|
||||
{"Key":"`"}
|
||||
{"Key":"."}
|
||||
{"Get":{"state":"one two\nthree fˇor","mode":"Normal"}}
|
10
crates/vim/test_data/test_gi.json
Normal file
10
crates/vim/test_data/test_gi.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{"Put":{"state":"one two\nthree fˇr"}}
|
||||
{"Key":"i"}
|
||||
{"Key":"o"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"k"}
|
||||
{"Key":"g"}
|
||||
{"Key":"i"}
|
||||
{"Key":"u"}
|
||||
{"Key":"escape"}
|
||||
{"Get":{"state":"one two\nthree foˇur","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue