Skip to content

Commit

Permalink
move less important code bottom in plugin file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcWeber committed Apr 24, 2012
1 parent 7ee485a commit 1da4c04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ couple of times fast.
The author told me it may happen occasionally - but did not for him. Well - I
want to work fast.

There are some more debugger script at www.vim.org which work with any
commandline related debugger or can be extended to work with those.
I haven't tried them. Example:
http://www.vim.org/scripts/script.php?script_id=1703

TODO / BUGS
- upload json protocol implementation for ruby-debug-ide19 to my github page (done)
and submit merge request when done (requested)
Expand Down
9 changes: 4 additions & 5 deletions plugin/vim-addon-ruby-debug-ide.vim
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
if !exists('g:rdebug_ide') | let g:rdebug_ide = {} | endif | let s:c = g:rdebug_ide

let s:c.rdebug_ide_cmd = get(s:c, 'rdebug_ide_cmd', 'rdebug-ide -J %')
let s:c.opts = get(s:c,'opts',{'port': '1234', 'host': 'localhost'})

command! -bar -nargs=0 RDStart call RDMappings() | call rdebug_ide#Start()
command! -bar -nargs=0 RDStop call rdebug_ide#Stop()

sign define rdebug_ide_breakpoint_activating text=O< linehl=
sign define rdebug_ide_breakpoint_deleting text=O> linehl=
sign define rdebug_ide_breakpoint_active text=O linehl=

if !exists('*RDMappings')
fun! RDMappings()
" step into
Expand Down Expand Up @@ -64,4 +61,6 @@ if !exists('*RDMappings')
endf
endif

let s:c.opts = get(s:c,'opts',{'port': '1234', 'host': 'localhost'})
sign define rdebug_ide_breakpoint_activating text=O< linehl=
sign define rdebug_ide_breakpoint_deleting text=O> linehl=
sign define rdebug_ide_breakpoint_active text=O linehl=

0 comments on commit 1da4c04

Please sign in to comment.