vim-ruby-debugger icon indicating copy to clipboard operation
vim-ruby-debugger copied to clipboard

Updated how the mappings are done

Open RichGuk opened this issue 14 years ago • 6 comments

Hey,

I've created a patch to update how the mappings are done so you can override them with ease, for example you can now do things like

let g:ruby_debugger_create_default_mappings = 0

" Setup mappings for ruby-debugger.
nmap <leader>db <plug>ruby_debugger_breakpoint
nmap <leader>dv <plug>ruby_debugger_open_variables
nmap <leader>dm <plug>ruby_debugger_open_breakpoints
nmap <leader>dt <plug>ruby_debugger_open_frames
nmap <leader>ds <plug>ruby_debugger_step
nmap <leader>df <plug>ruby_debugger_finish
nmap <leader>dn <plug>ruby_debugger_next
nmap <leader>dc <plug>ruby_debugger_continue
nmap <leader>de <plug>ruby_debugger_exit
nmap <leader>dd <plug>ruby_debugger_remove_breakpoints

(I like to prefix all the commands with d)

It will now also make sure the mapping isn't already in use, I had a lot of conflicts with NERD Tree and Command-T.

RichGuk avatar Aug 01 '11 21:08 RichGuk

+1

kibs avatar Aug 24 '11 09:08 kibs

+1 thanks for help

akemrir avatar Sep 21 '11 07:09 akemrir

:+1:

skwp avatar Jun 01 '12 00:06 skwp

:+1: - but looks like I'll be using @RichGuk's fork for now !

phantomwhale avatar Mar 12 '14 05:03 phantomwhale

Ok, after a little poking and attempting to merge the flag into a new fork, I notice that the g:ruby_debugger_no_maps flag is in the main master branch - so this pull request should really be closed now, as this flag fulfils the same intent ?

phantomwhale avatar Mar 12 '14 06:03 phantomwhale

It does look like that's the case. I feel after 3 years that it's most likely not being merged anyhow ;)

RichGuk avatar Mar 12 '14 07:03 RichGuk