How do I use vim as 'git show' editor?

前端 未结 5 1645
深忆病人
深忆病人 2021-02-08 12:50

all as described in How do I use vim as 'git log' editor? doesn\'t work for git show . I use often

git show HEAD

ctrl+z 

ps 

  PID TTY          TIME CM         


        
5条回答
  •  渐次进展
    2021-02-08 13:37

    You might also want to use a better diff than just patch syntax highlighting. It allows you to use git show and see the diff for each file in vimdiff. See this answer.

提交回复
热议问题