How do you exit vimdiff mode in vim, specifically, for Fugitive?

后端 未结 15 2108
日久生厌
日久生厌 2021-01-30 05:01

I am using vim with the fugitive extension. It has a :Gdiff command which brings you into vimdiff mode, but what is the right/quick way to close/quit vimdiff mode?

I.e.,

15条回答
  •  甜味超标
    2021-01-30 05:43

    You can execute windo set nodiff noscrollbind and then close the second window.

    Update: there is a diffoff command. Use windo diffoff, not what I wrote in previous line.

提交回复
热议问题