update
This commit is contained in:
@@ -37,10 +37,11 @@ let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
|
||||
let s:error_symbol = get(g:, 'airline#extensions#ale#error_symbol', 'E:')
|
||||
let s:warning_symbol = get(g:, 'airline#extensions#ale#warning_symbol', 'W:')
|
||||
let g:ale_linters = {
|
||||
\ 'c++': ['clang'],
|
||||
\ 'c': ['clang'],
|
||||
\ 'python': ['flake8'],
|
||||
\}
|
||||
\ 'c++': ['clang'],
|
||||
\ 'c': ['clang'],
|
||||
\ 'python': ['flake8'],
|
||||
\ 'vue':['eslint'],
|
||||
\ }
|
||||
"普通模式下,ep前往上一个错误或警告,en前往下一个错误或警告
|
||||
nmap ep <Plug>(ale_previous_wrap)
|
||||
nmap en <Plug>(ale_next_wrap)
|
||||
@@ -103,13 +104,17 @@ Bundle 'davidhalter/jedi-vim'
|
||||
Bundle 'ervandew/supertab'
|
||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||
|
||||
" 前端
|
||||
" xml html auto close
|
||||
Plugin 'alvan/vim-closetag'
|
||||
let g:jedi#documentation_command = ""
|
||||
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch,*.vue'
|
||||
|
||||
|
||||
Plugin 'marijnh/tern_for_vim'
|
||||
Plugin 'jiangmiao/auto-pairs'
|
||||
Plugin 'othree/javascript-libraries-syntax.vim'
|
||||
let g:used_javascript_libs = 'vue'
|
||||
|
||||
|
||||
|
||||
|
||||
Plugin 'Chiel92/vim-autoformat'
|
||||
@@ -191,20 +196,7 @@ Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||
|
||||
|
||||
Plugin 'fatih/vim-go'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Plugin 'posva/vim-vue'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let g:go_def_mode="godef"
|
||||
|
||||
|
||||
"Plugin 'https://github.com/taketwo/vim-ros.git'
|
||||
@@ -384,5 +376,13 @@ endif
|
||||
colorscheme slate
|
||||
highlight Comment ctermfg=blue
|
||||
|
||||
au BufNewFile,BufRead *.html,*.js,*.vue set tabstop=2
|
||||
au BufNewFile,BufRead *.html,*.js,*.vue set softtabstop=2
|
||||
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
|
||||
autocmd FileType vue syntax sync fromstart
|
||||
|
||||
|
||||
au BufNewFile,BufRead *.launch,*.urdf set filetype=xml
|
||||
|
||||
Reference in New Issue
Block a user