update js conf

This commit is contained in:
light 2019-05-10 17:33:26 +08:00
parent 69344487b2
commit 716274170b

View File

@ -106,6 +106,7 @@ let g:SuperTabDefaultCompletionType = "<c-n>"
" 前端
" xml html auto close
" js 补全
Plugin 'alvan/vim-closetag'
let g:jedi#documentation_command = ""
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch,*.vue'
@ -113,6 +114,8 @@ Plugin 'marijnh/tern_for_vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'othree/javascript-libraries-syntax.vim'
let g:used_javascript_libs = 'vue'
Plugin 'posva/vim-vue'
@ -382,6 +385,8 @@ au BufNewFile,BufRead *.html,*.js,*.vue set shiftwidth=2
au BufNewFile,BufRead *.html,*.js,*.vue set expandtab
au BufNewFile,BufRead *.html,*.js,*.vue set autoindent
au BufNewFile,BufRead *.html,*.js,*.vue set fileformat=unix
" vue 补全js
autocmd BufEnter,BufRead *.vue set filetype=vue.javascript
autocmd FileType vue syntax sync fromstart