diff --git a/plugin/vebugger.vim b/plugin/vebugger.vim index 56c198e..2cb1a21 100644 --- a/plugin/vebugger.vim +++ b/plugin/vebugger.vim @@ -19,6 +19,7 @@ command! -nargs=1 VBGexecute call vebugger#std#execute() command! -range -nargs=0 VBGevalSelectedText call vebugger#std#eval(vebugger#util#get_visual_selection()) command! -range -nargs=0 VBGexecuteSelectedText call vebugger#std#execute(vebugger#util#get_visual_selection()) +command! -range -nargs=0 VBGrawWriteSelectedText call vebugger#writeLine(vebugger#util#get_visual_selection()) command! -nargs=+ -complete=file VBGstartGDB call vebugger#gdb#start([][0],{'args':[][1:]}) command! -nargs=1 -complete=file VBGattachGDB call vebugger#gdb#searchAndAttach() @@ -39,12 +40,13 @@ if exists('g:vebugger_leader') \'E':'exe "VBGeval ".input("VBG-Eval> ")', \'x':'exe "VBGexecute ".getline(".")', \'X':'exe "VBGexecute ".input("VBG-Exec> ")', - \'':'exe "VBGrawWrite ".input("VBG> ")'}) + \'R':'exe "VBGrawWrite ".input("VBG> ")'}) exe 'nnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'' endfor for s:mapping in items({ \'e':'VBGevalSelectedText', - \'x':'VBGexecuteSelectedText'}) + \'x':'VBGexecuteSelectedText', + \'r':'VBGrawWriteSelectedText'}) exe 'vnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'' endfor endif