mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 05:04:33 +08:00
10 lines
211 B
VimL
10 lines
211 B
VimL
au BufNewFile,BufRead *.vue,*.wpy call s:setFiletype()
|
|
|
|
function! s:setFiletype()
|
|
" enable JavaScript autocmds first
|
|
" let &filetype = 'javascript'
|
|
|
|
" then set filetype
|
|
let &filetype = 'vue'
|
|
endfunction
|