Skip to content

Commit b8941df

Browse files
committed
update
1 parent f157f22 commit b8941df

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.vimrc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ Plugin 'iamcco/mathjax-support-for-mkdp'
213213
Plugin 'iamcco/markdown-preview.vim'
214214
Plugin 'jiangmiao/auto-pairs'
215215
Plugin 'scrooloose/nerdtree'
216+
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight'
217+
Plugin 'Xuyuanp/nerdtree-git-plugin'
216218
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
217219
Plugin 'rkulla/pydiction'
218220
Plugin 'Valloric/MatchTagAlways'
@@ -229,7 +231,6 @@ Plugin 'majutsushi/tagbar'
229231
Plugin 'octol/vim-cpp-enhanced-highlight'
230232
Plugin 'vim-airline/vim-airline'
231233
Plugin 'vim-airline/vim-airline-themes'
232-
Plugin 'tiagofumo/vim-nerdtree-syntax-highlight'
233234
Plugin 'vim-scripts/a.vim'
234235
Plugin 'vim-scripts/DoxygenToolkit.vim'
235236
Plugin 'vim-scripts/txt.vim'
@@ -396,6 +397,20 @@ nmap <Leader><Leader>il :IndentLinesToggle<CR>
396397
let g:pydiction_location='~/.vim/bundle/pydiction/complete-dict'
397398
let g:pydiction_menu_height=10
398399

400+
" nerdtree-git-plugin
401+
let g:NERDTreeIndicatorMapCustom = {
402+
\ "Modified" : "",
403+
\ "Staged" : "",
404+
\ "Untracked" : "",
405+
\ "Renamed" : "",
406+
\ "Unmerged" : "",
407+
\ "Deleted" : "",
408+
\ "Dirty" : "",
409+
\ "Clean" : "✔︎",
410+
\ 'Ignored' : '',
411+
\ "Unknown" : "?"
412+
\ }
413+
399414
" 个性化
400415
if filereadable(expand($HOME . '/.vimrc.local'))
401416
source $HOME/.vimrc.local

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ An automatic configuration program for vim
103103
| [vim-fugitive][36] | 集成Git |
104104
| [vim-slash][50] | 优化搜索,移动光标后清除高亮 |
105105
| [vim-nerdtree-syntax-highlight][52] | NerdTree文件类型高亮 |
106+
| [nerdtree-git-plugin][53] | NerdTree显示git状态 |
106107

107108

108109
快捷键
@@ -262,3 +263,4 @@ Q & A
262263
[50]: https://github.com/junegunn/vim-slash
263264
[51]: https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/DejaVuSansMono
264265
[52]: https://github.com/tiagofumo/vim-nerdtree-syntax-highlight
266+
[53]: https://github.com/Xuyuanp/nerdtree-git-plugin

0 commit comments

Comments
 (0)