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:
IdanArye 2014-05-14 23:04:01 +03:00
parent 5994aa9c07
commit 762034df2c

View File

@ -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({