Navigating HTML tags in Vim

后端 未结 2 1935
太阳男子
太阳男子 2021-01-30 05:14

I would like to be able to navigate through HTML tag by tag. Is there a way I can move from HTML tag to tag. (i.e. *

hi
bye
2条回答
  •  逝去的感伤
    2021-01-30 05:45

    The matchit.vim macro gets you most of the way there, allowing you to move to a closing tag with % as you would matching parens or braces. It's included in many Vim distributions including the standard download, but often not enabled by default.

    http://www.vim.org/scripts/script.php?script_id=39

提交回复
热议问题