A plugin of NERDTree showing git status flags. Works with the LATEST version of NERDTree.
For pathogen.vim:
git clone https://github.com/RobertAudi/nerdtree-git-plugin.git ~/.vim/bundle/nerdtree-git-plugin
For Vundle:
Plugin 'scrooloose/nerdtree'
Plugin 'RobertAudi/nerdtree-git-plugin'
For NeoBundle:
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'RobertAudi/nerdtree-git-plugin'
For vim-plug:
Plug 'scrooloose/nerdtree'
Plug 'RobertAudi/nerdtree-git-plugin'
How to config custom symbols?
Use this variable to change symbols.
let g:NERDTreeGitStatusIndicatorMap = {
\ 'Modified' : '✹',
\ 'Staged' : '✚',
\ 'Untracked' : '✭',
\ 'Renamed' : '➜',
\ 'Unmerged' : '═',
\ 'Deleted' : '✖',
\ 'Dirty' : '✗',
\ 'Clean' : '✔︎',
\ 'Ignored' : '☒',
\ 'Unknown' : '?'
\ }
How to show
ignored
status?
let g:NERDTreeGitStatusShowIgnoredStatus = 1
Note: this is a heavy feature and may cost much more time
- scrooloose: Open API for me.
- git_nerd: Where my idea comes from.
- PickRelated: Add custom indicators & Review code.