diff --git a/autoload/vebugger/std.vim b/autoload/vebugger/std.vim index ac8275b..b9dee3b 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=-> + execute 'sign define vebugger_current text=' . s:currentline_text endif if hlexists('BreakPoint') - sign define vebugger_breakpoint text=** linehl=BreakPoint texthl=BreakPoint + execute 'sign define vebugger_breakpoint text=' . s:breakpoint_text . ' linehl=BreakPoint texthl=BreakPoint' else - sign define vebugger_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 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: