git-nerdtree

NERDTree with git status support (DEPRECATED)

3 years after

The git-NERDTree

Notice

This project WILL NOT be maintained any longer!

The new repo nerdtree-git-plugin does the same work and what's more it's not a fork version but a dependent plugin of NERDTree which means you should use it with NERDTree at the same time.

Thank you for your attention.

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.

Note

It's NOT a plugin of NERDTree, but an enhance version.

More Info

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

Related Repositories

nerdtree

nerdtree

A tree explorer plugin for vim. ...

vim-devicons

vim-devicons

:symbols: Adds file type glyphs/icons to popular Vim plugins: NERDTree, vim-airl ...

vim-nerdtree-tabs

vim-nerdtree-tabs

NERDTree and tabs together in Vim, painlessly ...

nerdtree-git-plugin

nerdtree-git-plugin

A plugin of NERDTree showing git status ...

nerdtree-fugitive

nerdtree-fugitive

A plugin that adds some fugitive functionality directly to nerdtree for vim ...


Top Contributors

scrooloose Xuyuanp camthompson cperl82 AndrewRadev actionshrimp pendulm weynhamz sickill DanielleSucher iNecas SteveDeWald ZeusTheTrueGod gnap amarshall an1zhegorodov kasyaar EvanDotPro felipebueno franksort andersonfreitas inkarkat netj jinnko hpesoj losingkeys kml mark-rushakoff mathias migueldvb

Releases

-   5.1.1 zip tar
-   5.1.0 zip tar
-   5.0.1 zip tar
-   5.0 zip tar
-   4.2.0 zip tar
-   4.1.0 zip tar
-   4.0.0 zip tar
-   3.1.1 zip tar
-   3.1.0 zip tar
-   3.0.1 zip tar
-   3.0.0 zip tar
-   2.14.3 zip tar
-   2.14.2 zip tar
-   2.14.1 zip tar
-   2.14.0 zip tar
-   2.13.0 zip tar
-   2.12.0 zip tar
-   2.11.0 zip tar
-   2.10.0 zip tar
-   2.10.0rc1 zip tar
-   2.9.0 zip tar
-   2.8.0 zip tar
-   2.7.1 zip tar
-   2.7.0 zip tar