From 71980e9b57bf7483db9968cf5e8cc6f9362805d8 Mon Sep 17 00:00:00 2001 From: yemai Date: Fri, 28 Sep 2018 15:24:17 +0800 Subject: [PATCH] feat: set filetype to javascript.vue for .vue and .wpy --- filetype.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 filetype.vim diff --git a/filetype.vim b/filetype.vim new file mode 100644 index 0000000..b914917 --- /dev/null +++ b/filetype.vim @@ -0,0 +1,8 @@ +au BufNewFile,BufRead *.vue,*.wpy setf javascript.vue + +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