fix: use unix fileformat for .vim files

This commit is contained in:
yemai
2018-10-19 11:27:09 +08:00
parent 3b6417a66d
commit 400f4ce49d
3 changed files with 200 additions and 200 deletions

View File

@@ -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