From 205c965a61f255ad463d9e3d17b613b95d63a4d7 Mon Sep 17 00:00:00 2001 From: petRUShka Date: Thu, 2 May 2013 01:10:13 +0400 Subject: [PATCH] Fix: make vim command be os-specific, readme fix (cherry picked from commit c58e8d3c3cc923639241e2e5edc59846fb5ba810) --- README.md | 6 +++--- vim/plugin/settings/vim-ruby-debugger.vim | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3f87ac5..994e0f8 100644 --- a/README.md +++ b/README.md @@ -89,11 +89,11 @@ We include the `ghi` command. Try `ghi list` and have fun managing issues from c ### Ruby Debugger -This gem is optonal and not included. It's used to give you visual IDE-style debugging within vim, combined -with the vim-ruby-debugger plugin. To install: +This plugin is optional and not included. It's used to give you visual IDE-style debugging within vim, combined +with the debugger-xml gem. To install: ```bash -gem install ruby-debug-ide +gem install debugger-xml ``` ### ZSH diff --git a/vim/plugin/settings/vim-ruby-debugger.vim b/vim/plugin/settings/vim-ruby-debugger.vim index 2fb9366..d22a81f 100644 --- a/vim/plugin/settings/vim-ruby-debugger.vim +++ b/vim/plugin/settings/vim-ruby-debugger.vim @@ -2,7 +2,10 @@ "b let g:ruby_debugger_no_maps=1 -let g:ruby_debugger_progname='mvim' +let os=substitute(system('uname'), '\n', '', '') +if os == 'Darwin' || os == 'Mac' + let g:ruby_debugger_progname='mvim' +endif "Make our own maps noremap db :call ruby_debugger#load_debugger() call g:RubyDebugger.toggle_breakpoint()