vim: Add "unmatched" motions ]}, ]), [{ and [( (#21098)

Closes #20791

Release Notes:

- Added vim ["unmatched"
motions](1d87e11a1e/runtime/doc/motion.txt (L1238-L1255))
`]}`, `])`, `[{` and `[(`

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Helge Mahrt 2024-11-26 23:08:54 +01:00 committed by GitHub
parent 597e5f8304
commit 57e4540759
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 289 additions and 1 deletions

View file

@ -0,0 +1,24 @@
{"Put":{"state":"func (a string) {\n do(something(with<Types>.anˇd_arrays[0, 2]))\n}"}}
{"Key":"["}
{"Key":"{"}
{"Get":{"state":"func (a string) ˇ{\n do(something(with<Types>.and_arrays[0, 2]))\n}","mode":"Normal"}}
{"Put":{"state":"func (a string) {\n do(somethiˇng(with<Types>.and_arrays[0, 2]))\n}"}}
{"Key":"["}
{"Key":"("}
{"Get":{"state":"func (a string) {\n doˇ(something(with<Types>.and_arrays[0, 2]))\n}","mode":"Normal"}}
{"Put":{"state":"{{}{} ˇ }"}}
{"Key":"["}
{"Key":"{"}
{"Get":{"state":"ˇ{{}{} }","mode":"Normal"}}
{"Put":{"state":"(()() ˇ )"}}
{"Key":"["}
{"Key":"("}
{"Get":{"state":"ˇ(()() )","mode":"Normal"}}
{"Put":{"state":"{\n {()} ˇ\n}"}}
{"Key":"["}
{"Key":"{"}
{"Get":{"state":"ˇ{\n {()} \n}","mode":"Normal"}}
{"Put":{"state":"(\n {()} ˇ\n)"}}
{"Key":"["}
{"Key":"("}
{"Get":{"state":"ˇ(\n {()} \n)","mode":"Normal"}}

View file

@ -0,0 +1,28 @@
{"Put":{"state":"func (a string) {\n do(something(with<Types>.anˇd_arrays[0, 2]))\n}"}}
{"Key":"]"}
{"Key":"}"}
{"Get":{"state":"func (a string) {\n do(something(with<Types>.and_arrays[0, 2]))\nˇ}","mode":"Normal"}}
{"Put":{"state":"func (a string) {\n do(somethiˇng(with<Types>.and_arrays[0, 2]))\n}"}}
{"Key":"]"}
{"Key":")"}
{"Get":{"state":"func (a string) {\n do(something(with<Types>.and_arrays[0, 2])ˇ)\n}","mode":"Normal"}}
{"Put":{"state":"func (a string) { a((b, cˇ))}"}}
{"Key":"]"}
{"Key":")"}
{"Get":{"state":"func (a string) { a((b, c)ˇ)}","mode":"Normal"}}
{"Put":{"state":"{ˇ {}{}}"}}
{"Key":"]"}
{"Key":"}"}
{"Get":{"state":"{ {}{}ˇ}","mode":"Normal"}}
{"Put":{"state":"(ˇ ()())"}}
{"Key":"]"}
{"Key":")"}
{"Get":{"state":"( ()()ˇ)","mode":"Normal"}}
{"Put":{"state":"{\n ˇ {()}\n}"}}
{"Key":"]"}
{"Key":"}"}
{"Get":{"state":"{\n {()}\nˇ}","mode":"Normal"}}
{"Put":{"state":"(\n ˇ {()}\n)"}}
{"Key":"]"}
{"Key":")"}
{"Get":{"state":"(\n {()}\nˇ)","mode":"Normal"}}