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

后端 未结 5 1536
旧时难觅i
旧时难觅i 2021-02-10 03:02

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:27

    I use Pierre Habouzit's git.vim from www.vim.org. Drop it into ~/.vim/ftplugin and you should be all set (assuming the usual filetype plugin indent on in your ~/.vimrc).

提交回复
热议问题