Added vim-ruby-debugger - real ide style debugging in vim

This commit is contained in:
yan 2012-06-06 22:16:59 -07:00
parent e44e50e023
commit a89205fa7b
3 changed files with 21 additions and 0 deletions

3
.gitmodules vendored
View File

@ -316,3 +316,6 @@
[submodule "vim/bundle/mattn-webapi-vim"]
path = vim/bundle/mattn-webapi-vim
url = https://github.com/mattn/webapi-vim.git
[submodule "vim/bundle/astashov-vim-ruby-debugger"]
path = vim/bundle/astashov-vim-ruby-debugger
url = https://github.com/astashov/vim-ruby-debugger

@ -0,0 +1 @@
Subproject commit 631a9ebbb13a75ed6e8e72b52d197301452777d8

View File

@ -0,0 +1,17 @@
"Disable default maps which are too aggressive, overriding <leader>t and
"<leader>b
let g:ruby_debugger_no_maps=1
let g:ruby_debugger_progname='mvim'
"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>