Skip to content

About

A plugin of NERDTree showing git status

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

nerdtree-git-plugin

A plugin of NERDTree showing git status flags. Works with the LATEST version of NERDTree.

The original project git-nerdtree will not be maintained any longer.

Credits

The git-NERDTree

New Feature

Add git status support for NERDTree.You can indicate a file's git status, quickly see which files you have staged, unstaged and modified, or deleted in your project without any extra work.

Imgur

Indicators

  • ✭ / * : Untracked
  • ✹ / ~ : Modified in the working tree
  • ✚ / + : Staged in the index (Exclude Renamed status)
  • ➜ / » : Renamed
  • ═ / = : Unmerged
  • ✖ / - : Deleted (This indicator can't be shown, as NERDTree doesn't display deleted files. I have no prefect idea to solve this problem currently.)
  • ✗ / × : Dirty (Only for directory)
  • ✔ / ø : Clean (Only for root directory)

Option let g:NERDTreeUseSimpleIndicator = 1 to show the simple indicator.

Key mapping

As the same as GitGutter plugin default.

  • ]c : Jump to next indicator
  • [c : Jump to prev indicator

You can set g:NERDTreeMapNextHunk and g:NERDTreeMapPrevHunk variables to your prefer keys. e.g.

let g:NERDTreeMapNextHunk = ",n"

let g:NERDTreeMapPrevHunk = ",p"

Status Refresh

Add, Delete, Move and Copy actions through the m menu will refresh git status indicators automatically.

File modified, stage or commit actions through vim-fugitive plugin won't active the status refreshing, this is because that NERDTree itself doesn't support auto refreshing function. You should press r or R to refresh the tree view by yourself after these actions.

More Info

See details in https://github.com/scrooloose/nerdtree

About

A plugin of NERDTree showing git status

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages