Skip to content

Instantly share code, notes, and snippets.

@mattsacks
Created January 24, 2012 01:18
Show Gist options
  • Save mattsacks/1667140 to your computer and use it in GitHub Desktop.
Save mattsacks/1667140 to your computer and use it in GitHub Desktop.
Wipe existing fugitive buffers if you've arrived to diff hell.
" Fugitive
command! -nargs=0 Gwipe bufdo if expand("%") =~ '^fugitive'
\| execute 'bw'
\| endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment