Vdebug展开所有变量树

时间:2014-08-25 23:33:53

标签: vim

在Vdebug中是否有办法扩展所有“变量树”而无需手动浏览每个变量树并扩展它们?

用于解释变量树的意思的图片(箭头是树的顶部)。

enter image description here

2 个答案:

答案 0 :(得分:0)

我不了解Vdebug,但from the help file

4.2.2 The watch window                        *VdebugWatchWindow*
:
:
To open a closed tree, navigate to a line with a closed tree (right arrow) and
press <enter> (<cr>) or double-click if you have mouse-support enabled. This
will open the tree, and show all the children.

:
:
                                               *VdebugOptions-marker_closed_tree*
g:vdebug_options["marker_closed_tree"] (default = '▸')
Sets the marker used for a variable in the watch window that does have
children, but the tree is currently closed. A "+" symbol is used if multi
byte support is not enabled.

因此,您可以使用:global命令在包含已关闭树标记的每一行上按Enter键:

:exe 'g/'.g:vdebug_options["marker_closed_tree"]."/ normal \<cr>"

答案 1 :(得分:0)

我无法获得mMontu对所有事件的工作答案,但它确实适用于第一次出现。我也改变了它,所以我没有必要回到实际执行它。

exe 'g/'.g:vdebug_options["marker_closed_tree"]."/normal \<cr><cr>"

它也适用于“开放”标记,这是我想要的。出于某种原因,默认情况下我的所有都是开放的,这使得难以阅读。因此,相反OP(Kyle)想要(默认情况下全部打开)我希望所有人都默认关闭。

exe 'g/'.g:vdebug_options["marker_open_tree"]."/normal \<cr><cr>"