summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-11-17 11:20:35 +0000
committerBram Moolenaar <Bram@vim.org>2009-11-17 11:20:35 +0000
commit627b1d38624535c79912c48a5382aebbd5fb1e1e (patch)
treefdc9496bb9adc2d4519a80b21368a0ee0e6dadf1 /runtime/doc
parenteaf033921144ef2402ee1e521c111fcb2e953d04 (diff)
downloadvim-git-627b1d38624535c79912c48a5382aebbd5fb1e1e.tar.gz
updated for version 7.2-295v7.2.295
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index ba498af2f..afa38a493 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -3802,7 +3802,8 @@ map({expr}, {string}) *map()*
Replace each item in {expr} with the result of evaluating
{string}.
Inside {string} |v:val| has the value of the current item.
- For a |Dictionary| |v:key| has the key of the current item.
+ For a |Dictionary| |v:key| has the key of the current item
+ and for a |List| |v:key| has the index of the current item.
Example: >
:call map(mylist, '"> " . v:val . " <"')
< This puts "> " before and " <" after each item in "mylist".