1
0
forked from aniani/vim

updated for version 7.2-295

This commit is contained in:
Bram Moolenaar
2009-11-17 11:20:35 +00:00
parent eaf0339211
commit 627b1d3862
3 changed files with 11 additions and 4 deletions

View File

@@ -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".