vim: set notexists to +, add vim-fugitive

This commit is contained in:
2025-10-09 17:31:19 +08:00
parent 7c257dd4bd
commit 19786ad078

4
vimrc
View File

@@ -53,6 +53,8 @@ Plug 'tpope/vim-surround'
Plug 'elkowar/yuck.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': 'npm ci'}
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-fugitive'
"Plug 'airblade/vim-gitgutter'
Plug 'skywind3000/asyncrun.vim'
call plug#end()
@@ -284,7 +286,7 @@ let g:airline_mode_map={'s': '选择', 'V': '可视 行', 'ni': '(插入)', 'ic'
let g:airline_section_z='共%L行 %4l行%3v列 %3p%%'
let g:airline_symbols={'space': ' ', 'paste': '粘贴', 'maxlinenr': 'Ln', 'dirty': '!', 'crypt': '加密', 'linenr': 'Cln', 'readonly': '[只读]', 'spell': '拼写', 'modified': '*', 'notexists': '不存在', 'keymap': 'Keymap:', 'ellipsis': '...', 'branch': '分支', 'whitespace': '空格', 'executable': '+x'}
let g:airline_symbols={'space': ' ', 'paste': '粘贴', 'maxlinenr': 'Ln', 'dirty': '!', 'crypt': '加密', 'linenr': 'Cln', 'readonly': '[只读]', 'spell': '拼写', 'modified': '*', 'notexists': '+', 'keymap': 'Keymap:', 'ellipsis': '...', 'branch': '#', 'whitespace': '空格', 'executable': '+x'}
let g:airline#extensions#whitespace#enabled = 0
let g:airline#extensions#whitespace#trailing_format='[%s] 行尾冗余'