vim: Move to opening html tag from / in closing tag (#42513)

Closes #41582

Release Notes:

- Improves the '%' vim motion for html by moving the cursor to the
opening tag when its positioned on the `/` ( slash ) of the closing tag
This commit is contained in:
Pranav Joglekar
2025-12-02 12:58:20 -08:00
committed by GitHub
parent 4e043cd56b
commit 23e5477a4c
2 changed files with 32 additions and 4 deletions
@@ -13,3 +13,8 @@
{"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"}}
{"Put":{"state":"<html>\n <bˇody>\n </body>\n</html>"}}
{"Key":"%"}
{"Get":{"state":"<html>\n <body>\n <ˇ/body>\n</html>","mode":"Normal"}}
{"Key":"%"}
{"Get":{"state":"<html>\n <ˇbody>\n </body>\n</html>","mode":"Normal"}}