From 50092711ff831742cece76f3322674858863e3f3 Mon Sep 17 00:00:00 2001 From: Eli Gundry Date: Sat, 31 Dec 2011 17:37:13 -0500 Subject: [PATCH] Added :GundoHide & :GundoShow for easier scripting --- autoload/gundo.vim | 8 ++++++++ plugin/gundo.vim | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/autoload/gundo.vim b/autoload/gundo.vim index 70f55f7..b503a5d 100644 --- a/autoload/gundo.vim +++ b/autoload/gundo.vim @@ -311,6 +311,14 @@ function! s:GundoToggle()"{{{ endif endfunction"}}} +function! s:GundoShow()"{{{ + call s:GundoOpen() +endfunction"}}} + +function! s:GundoHide()"{{{ + call s:GundoClose() +endfunction"}}} + "}}} "{{{ Gundo mouse handling diff --git a/plugin/gundo.vim b/plugin/gundo.vim index fe2a200..ed59293 100644 --- a/plugin/gundo.vim +++ b/plugin/gundo.vim @@ -18,5 +18,7 @@ let loaded_gundo = 1"}}} "{{{ Misc command! -nargs=0 GundoToggle call gundo#GundoToggle() +command! -nargs=0 GundoShow call gundo#GundoShow() +command! -nargs=0 GundoHide call gundo#GundoHide() command! -nargs=0 GundoRenderGraph call gundo#GundoRenderGraph() -"}}} \ No newline at end of file +"}}}