205c965a61
(cherry picked from commit c58e8d3c3cc923639241e2e5edc59846fb5ba810)
21 lines
1.2 KiB
VimL
21 lines
1.2 KiB
VimL
"Disable default maps which are too aggressive, overriding <leader>t and
|
|
"<leader>b
|
|
let g:ruby_debugger_no_maps=1
|
|
|
|
let os=substitute(system('uname'), '\n', '', '')
|
|
if os == 'Darwin' || os == 'Mac'
|
|
let g:ruby_debugger_progname='mvim'
|
|
endif
|
|
|
|
"Make our own maps
|
|
noremap <leader>db :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.toggle_breakpoint()<CR>
|
|
noremap <leader>dv :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_variables()<CR>
|
|
noremap <leader>dm :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_breakpoints()<CR>
|
|
noremap <leader>dt :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_frames()<CR>
|
|
noremap <leader>ds :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.step()<CR>
|
|
noremap <leader>df :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.finish()<CR>
|
|
noremap <leader>dn :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.next()<CR>
|
|
noremap <leader>dc :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.continue()<CR>
|
|
noremap <leader>de :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.exit()<CR>
|
|
noremap <leader>dd :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.remove_breakpoints()<CR>
|