let s:base = expand(":h:h") let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" } let files = filter(globpath(&rtp, 'indent/vue.vim', 1, 1), Filter) if len(files) > 0 exec 'source ' . files[0] finish endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1 " Vim indent file " Language: Vue.js " Maintainer: Eduardo San Martin Morote " Author: Adriaan Zonnenberg if exists('b:did_indent') finish endif function! s:get_indentexpr(language) unlet! b:did_indent execute 'runtime! indent/' . a:language . '.vim' return &indentexpr endfunction " The order is important here, tags without attributes go last. " HTML is left out, it will be used when there is no match. let s:languages = [ \ { 'name': 'pug', 'pairs': ['