Changed the eval and write keymaps to be more consistent.
Now: - `e` and `w` eval and write the word(`e`) or line(`w`) under the cursor. - Unless some text is selected - in that case they use the selected text. - `E` and `W` prompt the user to type what to eval or write.
This commit is contained in:
parent
5994aa9c07
commit
762034df2c
@ -45,7 +45,8 @@ if exists('g:vebugger_leader')
|
||||
\'b':'VBGtoggleBreakpointThisLine',
|
||||
\'e':'VBGevalWordUnderCursor',
|
||||
\'E':'exe "VBGeval ".input("VBG-Eval> ")',
|
||||
\'w':'exe "VBGrawWrite ".input("VBG> ")'})
|
||||
\'w':'exe "VBGrawWrite ".getline(".")',
|
||||
\'W':'exe "VBGrawWrite ".input("VBG> ")'})
|
||||
exe 'nnoremap '.g:vebugger_leader.s:mapping[0].' :'.s:mapping[1].'<Cr>'
|
||||
endfor
|
||||
for s:mapping in items({
|
||||
|
Loading…
x
Reference in New Issue
Block a user