Questions tagged [dictionary]

Questions relating to the 'dictionary' or 'dict' setting.

Filter by
Sorted by
Tagged with
16 votes
1 answer
2k views

How can I merge two dictionaries in Vim?

I have two dicts: :let defaults = {'hello': 'world', 'bye': 'jupiter'} :let override = {'hello': 'mars'} How can I merge the keys from override so that I end up with a new dict like so: {'hello': '...
Martin Tournoij's user avatar