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.,
I had no luck with diffoff
, but I just learned that :Gedit
with no argument will bring you back to the working-directory version of the file, as opposed to some earlier version you were reviewing.
And as q
(no need for :q
) will close the diff sidebar, you can do q
followed by :Gedit
to get rid of the sidebar and then go back to the current version of the file.