feat: add ftplugin to support matchit '%' usage for template tag

This commit is contained in:
yemai
2019-06-17 12:40:54 +08:00
parent 2941c40e6c
commit 151d3cdc2f

12
ftplugin/vue.vim Normal file
View File

@@ -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