Skip to content

Instantly share code, notes, and snippets.

@radmen
Created February 27, 2013 13:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save radmen/5048080 to your computer and use it in GitHub Desktop.
Simple vim command to turn off Gdiff. Works only when Gdiff buffer is focused.
" Simple way to turn off Gdiff splitscreen
" works only when diff buffer is focused
if !exists(":Gdiffoff")
command Gdiffoff diffoff | q | Gedit
endif
@saamalik
Copy link

Thank you! I found this to be the best way of closing the diff window

@GrumpyRainbow
Copy link

Exactly what I was looking for. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment