brookhong / DBGPavim

This is a plugin to enable php debug in VIM with Xdebug, with a new debug engine.
132 stars 19 forks source link

customizable mappings #11

Closed peterhost closed 12 years ago

peterhost commented 12 years ago

More a feature request than an issue.

I've been using DBGpavim for 2 weeks now and totally love it. No way I switch back to the old xdebug plugins.

As i work via an imac through terminal on a lot of servers i don't have 'terminfo'... control over (moreover using azerty over qwerty and vice versa such pains), i often find that the mappings of the Fxx keys lead me into trouble.

I've modified my own version of the dbgpavim.vim file to hardcode remap into more standard keys.

Would it be possible to externalize that into some vimrc config ?

brookhong commented 12 years ago

specially for MAC, System Preferrences -> Keyboard -> Keyboard -> Use all F1, F2, etc. keys as standard function keys.

I will find a way to enable customized mapping.

peterhost commented 12 years ago

:) Already done that to free some F keys for some apps shortcuts (nvalt and whatnot). I just have F5/F6 left (whithout which i can't use top or htop and that's not an option)

Anyway, my custom version works well. I'll see if I can find the time to mod the plugin to externalize the mappings in a clean way.

brookhong commented 12 years ago

customizable key mappings has been implemented, please get the latest version and have a try. For example,

let g:dbgPavimKeyRun = '' let g:dbgPavimKeyStepOver = '' let g:dbgPavimKeyStepInto = '' let g:dbgPavimKeyStepOut = '' let g:dbgPavimKeyPropertyGet = '' let g:dbgPavimKeyContextGet = '' let g:dbgPavimKeyToggleBp = '' let g:dbgPavimKeyToggleBae = '' let g:dbgPavimKeyRelayout = ''

peterhost commented 12 years ago

humbly bows, and thanks the master of the master repo :)

Working great, thx a bunch!