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:
hrou0003 2024-11-15 06:41:53 +11:00 committed by GitHub
parent 189a034e71
commit f0882f44a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 159 additions and 10 deletions

View 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"}}