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.,
:windo diffthis
:windo diffoff
I recommend just using the most simple command: :q
when you want to do it quickly, add the mapping:
" Set mapleader
let mapleader = ","
let g:mapleader = ","
and
" Quickly close the current window
nnoremap q :q
It works well for me. Exit vimdiff just by ,q
, because normally your cursor in the old file.