From 9c47e1b243aff19d8243f536872e7b33556e15ff Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 18 Dec 2017 22:18:09 +0800 Subject: [PATCH 1/2] Add options for set sign text --- autoload/vebugger/std.vim | 8 +++++--- doc/vebugger.txt | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index ac8275b..490b12d 100644 --- a/autoload/vebugger/std.vim +++ b/autoload/vebugger/std.vim @@ -301,17 +301,19 @@ function! s:standardCloseHandlers.removeCurrentMarker(debugger) dict sign unplace 1 endfunction +let s:breakpoint_text = get(g:, 'vebugger_breakpoint_text', '->') +let s:currentline_text = get(g:, 'vebugger_currentline_text', '**') if hlexists("DebuggedLine") sign define vebugger_current linehl=DebuggedLine else - sign define vebugger_current text=-> + exe 'sign define vebugger_current text=' . s:currentline_text endif if hlexists('BreakPoint') - sign define vebugger_breakpoint text=** linehl=BreakPoint texthl=BreakPoint + exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint' else - sign define vebugger_breakpoint text=** linehl=ColorColumn texthl=ColorColumn + exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=ColorColumn texthl=ColorColumn' endif "Update all the marks(currently executed line and breakpoints) for a file diff --git a/doc/vebugger.txt b/doc/vebugger.txt index 9202029..697c3c6 100644 --- a/doc/vebugger.txt +++ b/doc/vebugger.txt @@ -110,6 +110,14 @@ Example: > let g:vebugger_view_source_cmd='edit' < +If you want to change the sign text of current line and breakpoint, use +*g:vebugger_breakpoint_text* and *g:vebugger_currentline_text* + +Example: > + let g:vebugger_breakpoint_text='->' + let g:vebugger_currentline_text='**' +< + Some debuggers (currently jdb only) may use vim tags to find required source files. This is disabled by default, to enable this set *g:vebugger_use_tags* option: From 876af0d1c26e43728f34c8c493ea2910cb6d8216 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 18 Dec 2017 22:40:40 +0800 Subject: [PATCH 2/2] Use full command names --- autoload/vebugger/std.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index 490b12d..b9dee3b 100644 --- a/autoload/vebugger/std.vim +++ b/autoload/vebugger/std.vim @@ -307,13 +307,13 @@ let s:currentline_text = get(g:, 'vebugger_currentline_text', '**') if hlexists("DebuggedLine") sign define vebugger_current linehl=DebuggedLine else - exe 'sign define vebugger_current text=' . s:currentline_text + execute 'sign define vebugger_current text=' . s:currentline_text endif if hlexists('BreakPoint') - exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint' + execute 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint' else - exe 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=ColorColumn texthl=ColorColumn' + execute 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=ColorColumn texthl=ColorColumn' endif "Update all the marks(currently executed line and breakpoints) for a file