Problem with parent keymap

Albert Krewinkel tarleb+evil at moltkeplatz.de
Sun Sep 14 11:57:36 CEST 2014


Frank Fischer <frank-fischer at shadow-soft.de> writes:

> Am 08.09.2014 um 21:56 schrieb Albert Krewinkel:
>> Hi,
>> 
>> I just encountered some unexpected behavior when defining key bindings
>> for maps which have parent maps:  When I define a key for some state for
>> the parent map as well as the child map, the child map overrides the
>> bindings for the parent map.
>
> You could try the following work around:
>
> Define at least one auxiliary binding in the child keymap *before*
> defining one in the parent keymap. This ensures that the child keymap
> has its own auxiliary binding. (In other words: just swap the last two
> lines in your example).

That workaround is great, its works perfectly.

Thanks for the help and the nice explanation (and for your work on evil)!

Cheers,
Albert

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124



More information about the implementations-list mailing list