Fix: make vim command be os-specific, readme fix

(cherry picked from commit c58e8d3c3cc923639241e2e5edc59846fb5ba810)
This commit is contained in:
petRUShka 2013-05-02 01:10:13 +04:00
parent e556aa4bf4
commit 205c965a61
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -2,7 +2,10 @@
"<leader>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 <leader>db :call ruby_debugger#load_debugger() <bar> call g:RubyDebugger.toggle_breakpoint()<CR>