Changed the raw-write key from ALT+W to R

This commit is contained in:
IdanArye 2014-05-17 20:57:10 +03:00
parent fe16f3925c
commit 663c38e1a6

View File

@ -19,6 +19,7 @@ command! -nargs=1 VBGexecute call vebugger#std#execute(<q-args>)
command! -range -nargs=0 VBGevalSelectedText call vebugger#std#eval(vebugger#util#get_visual_selection()) 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 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([<f-args>][0],{'args':[<f-args>][1:]}) command! -nargs=+ -complete=file VBGstartGDB call vebugger#gdb#start([<f-args>][0],{'args':[<f-args>][1:]})
command! -nargs=1 -complete=file VBGattachGDB call vebugger#gdb#searchAndAttach(<q-args>) command! -nargs=1 -complete=file VBGattachGDB call vebugger#gdb#searchAndAttach(<q-args>)
@ -39,12 +40,13 @@ if exists('g:vebugger_leader')
\'E':'exe "VBGeval ".input("VBG-Eval> ")', \'E':'exe "VBGeval ".input("VBG-Eval> ")',
\'x':'exe "VBGexecute ".getline(".")', \'x':'exe "VBGexecute ".getline(".")',
\'X':'exe "VBGexecute ".input("VBG-Exec> ")', \'X':'exe "VBGexecute ".input("VBG-Exec> ")',
\'<M-w>':'exe "VBGrawWrite ".input("VBG> ")'}) \'R':'exe "VBGrawWrite ".input("VBG> ")'})
exe 'nnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>' exe 'nnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>'
endfor endfor
for s:mapping in items({ for s:mapping in items({
\'e':'VBGevalSelectedText', \'e':'VBGevalSelectedText',
\'x':'VBGexecuteSelectedText'}) \'x':'VBGexecuteSelectedText',
\'r':'VBGrawWriteSelectedText'})
exe 'vnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>' exe 'vnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>'
endfor endfor
endif endif