From af4b6e67b9fcbadf569f96c8f9bead16f77a40bf Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Wed, 20 Oct 2010 19:46:37 -0400 Subject: [PATCH] Make the preview pane's height configurable. --- plugin/gundo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/gundo.vim b/plugin/gundo.vim index 4acb185..f12ad40 100644 --- a/plugin/gundo.vim +++ b/plugin/gundo.vim @@ -46,6 +46,10 @@ if !exists('g:gundo_width')"{{{ let g:gundo_width = 45 endif"}}} +if !exists('g:gundo_preview_height')"{{{ + let g:gundo_preview_height = 15 +endif"}}} + "}}} "{{{ Movement @@ -158,7 +162,7 @@ function! s:GundoResizeBuffers(backto)"{{{ exe "vertical resize " . g:gundo_width exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w" - exe "resize " . 15 + exe "resize " . g:gundo_preview_height exe a:backto . "wincmd w" endfunction"}}}