diff options
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index add2a13592..2951566ecb 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7809,7 +7809,20 @@ This does NOT work: > postponed until you type something), force a redraw with the |:redraw| command. Example: > :new | redraw | echo "there is a new window" -< +< *:echo-self-refer* + When printing nested containers echo prints second + occurrence of the self-referencing container using + "[...@level]" (self-referencing |List|) or + "{...@level}" (self-referencing |Dict|): > + :let l = [] + :call add(l, l) + :let l2 = [] + :call add(l2, [l2]) + :echo l l2 +< echoes "[[...@0]] [[[...@0]]]". Echoing "[l]" will + echo "[[[...@1]]]" because l first occurs at second + level. + *:echon* :echon {expr1} .. Echoes each {expr1}, without anything added. Also see |:comment|. |