diff --git a/plugin/vebugger.vim b/plugin/vebugger.vim index adc5df2..817a272 100644 --- a/plugin/vebugger.vim +++ b/plugin/vebugger.vim @@ -19,7 +19,6 @@ 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=1 -complete=file VBGstartGDB call vebugger#gdb#start(,{}) command! -nargs=1 -complete=file VBGattachGDB call vebugger#gdb#searchAndAttach() @@ -40,14 +39,12 @@ if exists('g:vebugger_leader') \'E':'exe "VBGeval ".input("VBG-Eval> ")', \'x':'exe "VBGexecute ".getline(".")', \'X':'exe "VBGexecute ".input("VBG-Exec> ")', - \'w':'exe "VBGrawWrite ".getline(".")', - \'W':'exe "VBGrawWrite ".input("VBG> ")'}) + \'':'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', - \'w':'VBGrawWriteSelectedText'}) + \'x':'VBGexecuteSelectedText'}) exe 'vnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'' endfor endif