How do I get git to display the changes in vim as hg does with the hgeditor script?

后端 未结 5 1387
灰色年华
灰色年华 2021-02-10 03:03

An interesting feature in mercurial is the ability to view the changes that will be committed in a vim split (see DiffsInCommitMessageInVIM).

Any hint on how to do so wi

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 03:38

    I've modified the HGEDITOR.SH script to support Git, you can clone it here:

    git clone git://github.com/dharrigan/giteditor.git
    

    Enjoy!

提交回复
热议问题