From b8941dfaf482d847c275d9d5099f13c351d2e563 Mon Sep 17 00:00:00 2001 From: chxuan <787280310@qq.com> Date: Thu, 12 Apr 2018 20:59:28 +0800 Subject: [PATCH] update --- .vimrc | 17 ++++++++++++++++- README.md | 2 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 5ecf947f..ad0f1a70 100644 --- a/.vimrc +++ b/.vimrc @@ -213,6 +213,8 @@ Plugin 'iamcco/mathjax-support-for-mkdp' Plugin 'iamcco/markdown-preview.vim' Plugin 'jiangmiao/auto-pairs' Plugin 'scrooloose/nerdtree' +Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' +Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} Plugin 'rkulla/pydiction' Plugin 'Valloric/MatchTagAlways' @@ -229,7 +231,6 @@ Plugin 'majutsushi/tagbar' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' -Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' Plugin 'vim-scripts/a.vim' Plugin 'vim-scripts/DoxygenToolkit.vim' Plugin 'vim-scripts/txt.vim' @@ -396,6 +397,20 @@ nmap il :IndentLinesToggle let g:pydiction_location='~/.vim/bundle/pydiction/complete-dict' let g:pydiction_menu_height=10 +" nerdtree-git-plugin +let g:NERDTreeIndicatorMapCustom = { + \ "Modified" : "✹", + \ "Staged" : "✚", + \ "Untracked" : "✭", + \ "Renamed" : "➜", + \ "Unmerged" : "═", + \ "Deleted" : "✖", + \ "Dirty" : "✗", + \ "Clean" : "✔︎", + \ 'Ignored' : '☒', + \ "Unknown" : "?" + \ } + " 个性化 if filereadable(expand($HOME . '/.vimrc.local')) source $HOME/.vimrc.local diff --git a/README.md b/README.md index 8073ae39..1cdcc1f3 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ An automatic configuration program for vim | [vim-fugitive][36] | 集成Git | | [vim-slash][50] | 优化搜索,移动光标后清除高亮 | | [vim-nerdtree-syntax-highlight][52] | NerdTree文件类型高亮 | +| [nerdtree-git-plugin][53] | NerdTree显示git状态 | 快捷键 @@ -262,3 +263,4 @@ Q & A [50]: https://github.com/junegunn/vim-slash [51]: https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/DejaVuSansMono [52]: https://github.com/tiagofumo/vim-nerdtree-syntax-highlight + [53]: https://github.com/Xuyuanp/nerdtree-git-plugin