vim: Enable %
to jump between tags (#20536)
Closes #12986 Release Notes: - Enable `%` to jump between pairs of tags --------- Co-authored-by: Harrison <hrouillard@sfi.com.au>
This commit is contained in:
parent
189a034e71
commit
f0882f44a7
8 changed files with 159 additions and 10 deletions
15
crates/vim/test_data/test_matching_tags.json
Normal file
15
crates/vim/test_data/test_matching_tags.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{"Exec":{"command":"set filetype=html"}}
|
||||
{"Put":{"state":"<bˇody></body>"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"<body><ˇ/body>","mode":"Normal"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"<ˇbody></body>","mode":"Normal"}}
|
||||
{"Put":{"state":"<a><bˇr/></a>"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"<a><bˇr/></a>","mode":"Normal"}}
|
||||
{"Put":{"state":"<div class='test' ˇid='main'>\n</div>\n"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"<div class='test' id='main'>\n<ˇ/div>\n","mode":"Normal"}}
|
||||
{"Put":{"state":"<a>\n <br\n test = \"test\"\n /ˇ>\n</a>"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"<a>\n ˇ<br\n test = \"test\"\n />\n</a>","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue