From 19786ad0780f0726ddbb47ca4206ff518fef7428 Mon Sep 17 00:00:00 2001 From: "Edgaru089 @ archhd" Date: Thu, 9 Oct 2025 17:31:19 +0800 Subject: [PATCH] vim: set notexists to +, add vim-fugitive --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index bf7fd1e..210277a 100644 --- a/vimrc +++ b/vimrc @@ -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] 行尾冗余'