diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim new file mode 100644 index 0000000..ccf44d2 --- /dev/null +++ b/ftplugin/vue.vim @@ -0,0 +1,12 @@ +if exists("b:did_ftplugin") | finish | endif +let b:did_ftplugin = 1 + +setlocal matchpairs+=<:> + +if exists("loaded_matchit") + let b:match_ignorecase = 1 + let b:match_words = '<:>,' . + \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' . + \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . + \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' +endif