mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-04-28 10:05:35 +08:00
Simplify filetype setting
This commit is contained in:
+1
-9
@@ -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