vim: Implement /n and /c in :s (#34102)
Closes #23345 Release Notes: - vim: Support /n and /c in :s//
This commit is contained in:
parent
6daf888fdb
commit
4ed206b37c
6 changed files with 263 additions and 81 deletions
23
crates/vim/test_data/test_replace_g.json
Normal file
23
crates/vim/test_data/test_replace_g.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{"Put":{"state":"ˇaa aa aa aa\naa\naa"}}
|
||||
{"Key":":"}
|
||||
{"Key":"s"}
|
||||
{"Key":"/"}
|
||||
{"Key":"a"}
|
||||
{"Key":"a"}
|
||||
{"Key":"/"}
|
||||
{"Key":"b"}
|
||||
{"Key":"b"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"ˇbb aa aa aa\naa\naa","mode":"Normal"}}
|
||||
{"Key":":"}
|
||||
{"Key":"s"}
|
||||
{"Key":"/"}
|
||||
{"Key":"a"}
|
||||
{"Key":"a"}
|
||||
{"Key":"/"}
|
||||
{"Key":"b"}
|
||||
{"Key":"b"}
|
||||
{"Key":"/"}
|
||||
{"Key":"g"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"ˇbb bb bb bb\naa\naa","mode":"Normal"}}
|
13
crates/vim/test_data/test_replace_n.json
Normal file
13
crates/vim/test_data/test_replace_n.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{"Put":{"state":"ˇaa\nbb\naa"}}
|
||||
{"Key":":"}
|
||||
{"Key":"s"}
|
||||
{"Key":"/"}
|
||||
{"Key":"b"}
|
||||
{"Key":"b"}
|
||||
{"Key":"/"}
|
||||
{"Key":"d"}
|
||||
{"Key":"d"}
|
||||
{"Key":"/"}
|
||||
{"Key":"n"}
|
||||
{"Key":"enter"}
|
||||
{"Get":{"state":"ˇaa\nbb\naa","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue