From a89205fa7b037406d8d5d7adbba0ba6d9ba49132 Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 6 Jun 2012 22:16:59 -0700 Subject: [PATCH] Added vim-ruby-debugger - real ide style debugging in vim --- .gitmodules | 3 +++ vim/bundle/astashov-vim-ruby-debugger | 1 + vim/plugin/settings/vim-ruby-debugger.vim | 17 +++++++++++++++++ 3 files changed, 21 insertions(+) create mode 160000 vim/bundle/astashov-vim-ruby-debugger create mode 100644 vim/plugin/settings/vim-ruby-debugger.vim diff --git a/.gitmodules b/.gitmodules index 212b0c8..2d930e7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/vim/bundle/astashov-vim-ruby-debugger b/vim/bundle/astashov-vim-ruby-debugger new file mode 160000 index 0000000..631a9eb --- /dev/null +++ b/vim/bundle/astashov-vim-ruby-debugger @@ -0,0 +1 @@ +Subproject commit 631a9ebbb13a75ed6e8e72b52d197301452777d8 diff --git a/vim/plugin/settings/vim-ruby-debugger.vim b/vim/plugin/settings/vim-ruby-debugger.vim new file mode 100644 index 0000000..2fb9366 --- /dev/null +++ b/vim/plugin/settings/vim-ruby-debugger.vim @@ -0,0 +1,17 @@ +"Disable default maps which are too aggressive, overriding t and +"b +let g:ruby_debugger_no_maps=1 + +let g:ruby_debugger_progname='mvim' + +"Make our own maps +noremap db :call ruby_debugger#load_debugger() call g:RubyDebugger.toggle_breakpoint() +noremap dv :call ruby_debugger#load_debugger() call g:RubyDebugger.open_variables() +noremap dm :call ruby_debugger#load_debugger() call g:RubyDebugger.open_breakpoints() +noremap dt :call ruby_debugger#load_debugger() call g:RubyDebugger.open_frames() +noremap ds :call ruby_debugger#load_debugger() call g:RubyDebugger.step() +noremap df :call ruby_debugger#load_debugger() call g:RubyDebugger.finish() +noremap dn :call ruby_debugger#load_debugger() call g:RubyDebugger.next() +noremap dc :call ruby_debugger#load_debugger() call g:RubyDebugger.continue() +noremap de :call ruby_debugger#load_debugger() call g:RubyDebugger.exit() +noremap dd :call ruby_debugger#load_debugger() call g:RubyDebugger.remove_breakpoints()