mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Simplify filetype setting
This commit is contained in:
10
filetype.vim
10
filetype.vim
@@ -1,9 +1 @@
|
|||||||
au BufNewFile,BufRead *.vue,*.wpy call s:setFiletype()
|
au BufNewFile,BufRead *.vue,*.wpy se ft=vue
|
||||||
|
|
||||||
function! s:setFiletype()
|
|
||||||
" enable JavaScript autocmds first
|
|
||||||
" let &filetype = 'javascript'
|
|
||||||
|
|
||||||
" then set filetype
|
|
||||||
let &filetype = 'vue'
|
|
||||||
endfunction
|
|
||||||
|
|||||||
Reference in New Issue
Block a user