vim: Add support for :g/ and :v/ (#22177)
Closes #ISSUE Still TODO to make this feature good is better command history Release Notes: - vim: Add support for `:g/<pattern>/<cmd>` and `:v/<pattern>/<cmd>`
This commit is contained in:
parent
2ecbd97fe8
commit
4a6f071fde
5 changed files with 300 additions and 8 deletions
19
crates/vim/test_data/test_command_matching_lines.json
Normal file
19
crates/vim/test_data/test_command_matching_lines.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{"Put":{"state":"ˇa\nb\na\nb\na\n"}}
|
||||
{"Key":":"}
|
||||
{"Key":"g"}
|
||||
{"Key":"/"}
|
||||
{"Key":"a"}
|
||||
{"Key":"/"}
|
||||
{"Key":"d"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"b\nb\nˇ","mode":"Normal"}}
|
||||
{"Key":"u"}
|
||||
{"Get":{"state":"ˇa\nb\na\nb\na\n","mode":"Normal"}}
|
||||
{"Key":":"}
|
||||
{"Key":"v"}
|
||||
{"Key":"/"}
|
||||
{"Key":"a"}
|
||||
{"Key":"/"}
|
||||
{"Key":"d"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"a\na\nˇa","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue