Browse Source

vim: add Vdebug, config

Using this for testing Xdebug.  Probably not a permanent addition.
main
Brennen Bearnes 9 months ago
parent
commit
a5cc378534
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      home/.vim/vimrc

+ 21
- 0
home/.vim/vimrc View File

@ -240,6 +240,27 @@ let mapleader = ","
Plugin 'mbbill/undotree'
" Vdebug should work with xdebug - see help for XDEBUG_CONFIG stuffs,
" although they don't seem to have been translated for Xdebug 3.x. I've
" namespaced all the keymaps here so that when this is enabled it doesn't
" stomp all over my usual bindings.
let g:vdebug_keymap = {
\ "run" : "<Leader><F5>",
\ "run_to_cursor" : "<Leader><F9>",
\ "step_over" : "<Leader><F2>",
\ "step_into" : "<Leader><F3>",
\ "step_out" : "<Leader><F4>",
\ "close" : "<Leader><F6>",
\ "detach" : "<Leader><F7>",
\ "set_breakpoint" : "<Leader><F10>",
\ "get_context" : "<Leader><F11>",
\ "eval_under_cursor" : "<Leader><F12>",
\ "eval_visual" : "<Leader>e",
\}
" The Xdebug 3.x default port is 9003:
let g:vdebug_options = { 'port' : 9003 }
Plugin 'https://github.com/vim-vdebug/vdebug'
" minimap of code
" TODO: does this actually work?
" Plugin 'severin-lemaignan/vim-minimap'


Loading…
Cancel
Save