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

后端 未结 15 1899
日久生厌
日久生厌 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:39

    noremap do :diffoff \| windo if &diff \| hide \| endif

    Quite diff mode and close other diff windows. (Note: fugitive will auto delete its hidden buffers.)

提交回复
热议问题