d84608c7bdfe

Moar.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 08 Oct 2010 21:33:51 -0400
parents f5aa9bd91d30
children ae5f399be2c2
branches/tags (none)
files plugin/gundo.vim

Changes

--- a/plugin/gundo.vim	Fri Oct 08 20:45:36 2010 -0400
+++ b/plugin/gundo.vim	Fri Oct 08 21:33:51 2010 -0400
@@ -16,7 +16,7 @@
 "let loaded_gundo = 1
 
 if !exists('g:gundo_width')
-    let g:gundo_width = 20
+    let g:gundo_width = 40
 endif
 
 function! s:GundoOpenBuffer()
@@ -44,12 +44,13 @@
 function! s:GundoToggle()
     if expand('%') == "__Gundo__"
         quit
+        exe s:gundo_back . "wincmd w"
     else
+        let s:gundo_back = winnr()
         GundoRender
     endif
 endfunction
 
-
 function! s:GundoMarkBuffer()
     setlocal buftype=nofile
     setlocal bufhidden=hide