let files = filter(globpath(&rtp, 'indent/vue.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) 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': ['