Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit a89205fa7b037406d8d5d7adbba0ba6d9ba49132 1 parent e44e50e
Yan Pritzker skwp authored
3  .gitmodules
@@ -316,3 +316,6 @@
316 316 [submodule "vim/bundle/mattn-webapi-vim"]
317 317 path = vim/bundle/mattn-webapi-vim
318 318 url = https://github.com/mattn/webapi-vim.git
  319 +[submodule "vim/bundle/astashov-vim-ruby-debugger"]
  320 + path = vim/bundle/astashov-vim-ruby-debugger
  321 + url = https://github.com/astashov/vim-ruby-debugger
1  vim/bundle/astashov-vim-ruby-debugger
... ... @@ -0,0 +1 @@
  1 +Subproject commit 631a9ebbb13a75ed6e8e72b52d197301452777d8
17 vim/plugin/settings/vim-ruby-debugger.vim
... ... @@ -0,0 +1,17 @@
  1 +"Disable default maps which are too aggressive, overriding <leader>t and
  2 +"<leader>b
  3 +let g:ruby_debugger_no_maps=1
  4 +
  5 +let g:ruby_debugger_progname='mvim'
  6 +
  7 +"Make our own maps
  8 +noremap <leader>db :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.toggle_breakpoint()<CR>
  9 +noremap <leader>dv :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_variables()<CR>
  10 +noremap <leader>dm :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_breakpoints()<CR>
  11 +noremap <leader>dt :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.open_frames()<CR>
  12 +noremap <leader>ds :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.step()<CR>
  13 +noremap <leader>df :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.finish()<CR>
  14 +noremap <leader>dn :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.next()<CR>
  15 +noremap <leader>dc :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.continue()<CR>
  16 +noremap <leader>de :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.exit()<CR>
  17 +noremap <leader>dd :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.remove_breakpoints()<CR>

0 comments on commit a89205f

Please sign in to comment.
Something went wrong with that request. Please try again.