Is there a NERDTree or other project plugin for vim that integrates with git to show the status of files?

后端 未结 4 1750
悲&欢浪女
悲&欢浪女 2021-02-19 03:54

I played with Aptana Studio for a while before moving over to VIM, and the only thing I really miss about Aptana Studio is the way that in their project view window your file na

4条回答
  •  攒了一身酷
    2021-02-19 03:57

    I guess you would like this https://github.com/Xuyuanp/git-nerdtree

    It's my forked NERDTree.

    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.

    Indicator

    • ✭ : 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 directory)

    Key mapping

    As the same as GitGutter plugin default.

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

提交回复
热议问题