vim: Respect count for paragraphs (#33489)
Closes #32462 Release Notes: - vim: Paragraph objects now support counts (`d2ap`, `v2ap`, etc.) --------- Co-authored-by: Rift <no@e.mail> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
ba4fc1bcfc
commit
97c5c5a6e7
17 changed files with 182 additions and 54 deletions
18
crates/vim/test_data/test_paragraph_multi_delete.json
Normal file
18
crates/vim/test_data/test_paragraph_multi_delete.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{"Put":{"state":"Emacs is\nˇa great\n\noperating system\n\nall it lacks\nis a\n\ndecent text editor\n"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"d"}
|
||||
{"Key":"a"}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"ˇall it lacks\nis a\n\ndecent text editor\n","mode":"Normal"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"a"}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"ˇdecent text editor\n","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"all it lacks\nis a\n\n"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"u"}
|
||||
{"Key":"4"}
|
||||
{"Key":"d"}
|
||||
{"Key":"a"}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"ˇ","mode":"Normal"}}
|
6
crates/vim/test_data/test_v2ap.json
Normal file
6
crates/vim/test_data/test_v2ap.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{"Put":{"state":"The\nquicˇk\n\nbrown\nfox"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"2"}
|
||||
{"Key":"a"}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"«The\nquick\n\nbrown\nfˇ»ox","mode":"VisualLine"}}
|
Loading…
Add table
Add a link
Reference in a new issue