Vim Script to hightlight end of a tag like braces

匿名 (未验证) 提交于 2019-12-03 00:53:01

问题:

I need a Vim script to highlight end of a tag when cursor is at the beginning of the tag.

For example in html tags, when cursor is in start of tag, it should highlight the end of the tag.

The interface should be generic, so that more tags can be added

回答1:

If you replace your html.vim file with this one, you'll get the html tag matching plus some extra stuff. Or you can use matchit which is more general purpose.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!