Using Vim as an HTML editor

后端 未结 5 595
你的背包
你的背包 2021-02-01 15:43

You know how Notepad++ has this feature that when you click on a tag (say ) it automatically highlights the ending tag () as well? What\'s it called? And how do you tweak Vim to

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 16:36

    To match tags:

    Have a look at matchit plugin. Vim 6 onwards matchit.vim is packaged with standard distribution. To install matchit, read :help matchit-install.

    Make sure filetype plugin on is in vimrc.

    Once installed, use % to match the start/end tag. :help matchit-intro for more help.

提交回复
热议问题