From 40f9e427353087f1687bfa4b0524b838ef9c08d3 Mon Sep 17 00:00:00 2001 From: IdanArye Date: Sat, 28 Dec 2013 00:08:42 +0200 Subject: [PATCH] Added toggling command for the log buffer --- autoload/vebugger.vim | 23 ++++++++++++++++++++--- plugin/vebugger.vim | 2 ++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/autoload/vebugger.vim b/autoload/vebugger.vim index 5d478ef..b305211 100644 --- a/autoload/vebugger.vim +++ b/autoload/vebugger.vim @@ -94,7 +94,7 @@ function! s:f_debugger.showLogBuffer() dict setlocal buftype=nofile setlocal bufhidden=wipe let self.logBuffer=bufnr('') - file Vebugger\ Console + silent file Vebugger\ Console wincmd p endfunction @@ -109,6 +109,23 @@ function! s:f_debugger.closeLogBuffer() dict endif endfunction +function! s:f_debugger.isLogBufferOpen() dict + if has_key(self,'logBuffer') + if -1