vim gigv (#13028)
Release Notes: - vim: Fix `gi` when the insert ended at the end of a line (#12162) - vim: Add `gv` to restore previous visual selection (#12888) - vim: Fix `gl` when the first match is at the end of a line
This commit is contained in:
parent
3539a7c04a
commit
3b84b106e2
12 changed files with 239 additions and 49 deletions
|
@ -24,3 +24,12 @@
|
|||
{"Key":"`"}
|
||||
{"Key":"^"}
|
||||
{"Get":{"state":"Line one\nLine two\nLine three\nStraight thingˇ four\nLine five\n","mode":"Normal"}}
|
||||
{"Key":"k"}
|
||||
{"Key":"a"}
|
||||
{"Key":"!"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"k"}
|
||||
{"Key":"g"}
|
||||
{"Key":"i"}
|
||||
{"Key":"?"}
|
||||
{"Get":{"state":"Line one\nLine two\nLine three!?ˇ\nStraight thing four\nLine five\n","mode":"Insert"}}
|
||||
|
|
24
crates/vim/test_data/test_gv.json
Normal file
24
crates/vim/test_data/test_gv.json
Normal file
|
@ -0,0 +1,24 @@
|
|||
{"Put":{"state":"The ˇquick brown"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"g"}
|
||||
{"Key":"v"}
|
||||
{"Get":{"state":"The «quickˇ» brown","mode":"Visual"}}
|
||||
{"Key":"o"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"g"}
|
||||
{"Key":"v"}
|
||||
{"Get":{"state":"The «ˇquick» brown","mode":"Visual"}}
|
||||
{"Key":"escape"}
|
||||
{"Key":"^"}
|
||||
{"Key":"ctrl-v"}
|
||||
{"Key":"l"}
|
||||
{"Get":{"state":"«Thˇ»e quick brown","mode":"VisualBlock"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"v"}
|
||||
{"Get":{"state":"The «ˇquick» brown","mode":"Visual"}}
|
||||
{"Key":"g"}
|
||||
{"Key":"v"}
|
||||
{"Get":{"state":"«Thˇ»e quick brown","mode":"VisualBlock"}}
|
|
@ -16,3 +16,14 @@
|
|||
{"Key":"`"}
|
||||
{"Key":">"}
|
||||
{"Get":{"state":"Line one\nLine two\nLine three\nLine ˇfour\nLine five\n","mode":"Normal"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Key":"o"}
|
||||
{"Key":"escape"}
|
||||
{"Key":"`"}
|
||||
{"Key":">"}
|
||||
{"Get":{"state":"Line one\nLine two\nLine three\nLine fouˇr\nLine five\n","mode":"Normal"}}
|
||||
{"Key":"`"}
|
||||
{"Key":"<"}
|
||||
{"Get":{"state":"Line one\nLine two\nLine three\nLine ˇfour\nLine five\n","mode":"Normal"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue