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.,
Check the vimdiff toggling between diffthis and diffoff here at this page.
vimdiff
diffthis
diffoff
The code:
nnoremap df :call DiffToggle() function! DiffToggle() if &diff diffoff else diffthis endif :endfunction