public
Created

Simple vim command to turn off Gdiff. Works only when Gdiff buffer is focused.

  • Download Gist
vimrc
VimL
1 2 3 4 5
" Simple way to turn off Gdiff splitscreen
" works only when diff buffer is focused
if !exists(":Gdiffoff")
command Gdiffoff diffoff | q | Gedit
endif

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

Exactly what I was looking for. Thank you!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.