Permalink
Browse files

Quit Vim if CloseGitv() on last tab.

  • Loading branch information...
1 parent 7c18a36 commit a50dc10b6dc6b8bae43095fddc4826866585d7ea @gregsexton committed May 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/gitv.vim
View
@@ -865,6 +865,11 @@ fu! s:CloseGitv() "{{{
if s:IsFileMode()
q
else
+ "only tab: quit vim
+ if tabpagenr() == tabpagenr('$') && tabpagenr() == 1
+ qa
+ endif
+
if g:Gitv_WipeAllOnClose
silent windo setlocal bufhidden=wipe
endif

0 comments on commit a50dc10

Please sign in to comment.