mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-03-13 10:20:53 +08:00
fix: use unix fileformat for .vim files
This commit is contained in:
32
filetype.vim
32
filetype.vim
@@ -1,16 +1,16 @@
|
||||
au BufNewFile,BufRead *.vue,*.wpy call s:setFileType()
|
||||
|
||||
function! s:setFileType()
|
||||
" enable javascript autocmds first
|
||||
let &filetype = 'javascript'
|
||||
|
||||
" then set filetype
|
||||
let &filetype = 'javascript.vue'
|
||||
endfunction
|
||||
|
||||
if !exists("g:vim_vue_plugin_has_init_indent")
|
||||
let ext = expand("%:e")
|
||||
if ext == 'wpy'
|
||||
let g:vim_vue_plugin_has_init_indent = 1
|
||||
endif
|
||||
endif
|
||||
au BufNewFile,BufRead *.vue,*.wpy call s:setFileType()
|
||||
|
||||
function! s:setFileType()
|
||||
" enable javascript autocmds first
|
||||
let &filetype = 'javascript'
|
||||
|
||||
" then set filetype
|
||||
let &filetype = 'javascript.vue'
|
||||
endfunction
|
||||
|
||||
if !exists("g:vim_vue_plugin_has_init_indent")
|
||||
let ext = expand("%:e")
|
||||
if ext == 'wpy'
|
||||
let g:vim_vue_plugin_has_init_indent = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user