Update vimscript.md (#1952)
Accessing key in dictionaries make use of `[` instead of `(`
This commit is contained in:
parent
6afbde3c2d
commit
9c1026d62f
|
@ -447,7 +447,7 @@ map(dict, '<>> " . v:val')
|
|||
|
||||
```vim
|
||||
for key in keys(mydict)
|
||||
echo key . ': ' . mydict(key)
|
||||
echo key . ': ' . mydict[key]
|
||||
endfor
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue