Skip to content

Instantly share code, notes, and snippets.

@actionshrimp
Created September 9, 2013 09:49
Show Gist options
  • Save actionshrimp/6493611 to your computer and use it in GitHub Desktop.
Save actionshrimp/6493611 to your computer and use it in GitHub Desktop.
A vim-fugitive status window toggle (mapped to F3). Seems to work nicely
function! ToggleGStatus()
if buflisted(bufname('.git/index'))
bd .git/index
else
Gstatus
endif
endfunction
command ToggleGStatus :call ToggleGStatus()
nmap <F3> :ToggleGStatus<CR>
@Fymyte
Copy link

Fymyte commented Aug 20, 2022

@disselkamp thanks for the report 👍

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