vim-matchup icon indicating copy to clipboard operation
vim-matchup copied to clipboard

Support HTML Tag Matching in *.vue Files

Open theSdev opened this issue 5 years ago • 5 comments
trafficstars

Is your feature request related to a problem? Please describe. HTML tag matching does not work in *.vue files

Describe the solution you'd like I think HTML tag matching should work regardless of file type. Otherwise having a way to alias *.vue to act as *.html would be nice too.

Describe alternatives you've considered None

Additional context *.vue files consist of three main parts, one of which is <template> for writing HTML.

theSdev avatar Sep 05 '20 11:09 theSdev

Seems to work with the plugin https://github.com/posva/vim-vue

What plugin, if any, are you using for vue syntax highighting?

andymass avatar Sep 05 '20 13:09 andymass

I only use https://github.com/neoclide/coc-vetur for Vue.


Von: Andy Massimino [email protected] Gesendet: Samstag, 5. September 2020, 18:18 An: andymass/vim-matchup Cc: Samir Saeedi; Author Betreff: Re: [andymass/vim-matchup] Support HTML Tag Matching in *.vue Files (#106)

Seems to work with the plugin https://github.com/posva/vim-vue

What plugin, if any, are you using for vue syntax highighting?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/andymass/vim-matchup/issues/106#issuecomment-687613937, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF6KWNGICHP473HQK6JDAT3SEI6STANCNFSM4Q2Y7PHQ.

theSdev avatar Sep 05 '20 15:09 theSdev

Sorry, I'm still a bit confused. Does coc-vetur/coc.nvim provide syntax highlighting for vue files?

andymass avatar Sep 07 '20 13:09 andymass

I can confirm that with https://github.com/posva/vim-vue the matching seems to work in .vue files.

x-ji avatar Mar 20 '21 23:03 x-ji

Any updates on this issue? As @x-ji mentioned, installing https://github.com/posva/vim-vue fixes the bug, but it would be really great to have it resolved natively in vim-matchup

jakubreron avatar Jun 08 '22 09:06 jakubreron

Vue is supported without any extra plugin now in modern versions of vim.

If you're using an old version of vim, you can create a file

.vim/after/ftplugin/vue.vim or .vim/ftplugin/vue.vim containing:

let b:match_words = matchup#util#standard_html()

andymass avatar May 07 '23 01:05 andymass