mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-06 20:54:30 +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()
|
||||
|
||||
function! s:setFiletype()
|
||||
" enable JavaScript autocmds first
|
||||
" let &filetype = 'javascript'
|
||||
|
||||
" then set filetype
|
||||
let &filetype = 'vue'
|
||||
endfunction
|
||||
au BufNewFile,BufRead *.vue,*.wpy se ft=vue
|
||||
|
||||
Reference in New Issue
Block a user