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, 'ftplugin/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 filetype plugin " Language: Vue.js " Maintainer: Eduardo San Martin Morote " Author: Adriaan Zonnenberg if exists('b:did_ftplugin') finish endif runtime! ftplugin/html.vim setlocal suffixesadd+=.vue if !exists('g:no_plugin_maps') && !exists('g:no_vue_maps') nnoremap [[ :call search('^<\(template\script\style\)', 'bW') nnoremap ]] :call search('^<\(template\script\style\)', 'W') nnoremap [] :call search('^script\style\)', 'bW') nnoremap ][ :call search('^script\style\)', 'W') endif endif