Set the copycat mode key bindings once at the very beginning and streamline the process of setting those bindings (use a single pass-through with awk instead of iterating over the list of keybindings every time).
This has a significant impact on the startup time of copycat mode since it does not have to rebind they keys every time copycat mode is started. We can get away with this since all of the copycat scripts check to make sure we are in copycat mode before they do anything, so even if they are executed when not in copycat mode, they are basically a no-op.
Set the copycat mode key bindings once at the very beginning and streamline the process of setting those bindings (use a single pass-through with
awk
instead of iterating over the list of keybindings every time).This has a significant impact on the startup time of copycat mode since it does not have to rebind they keys every time copycat mode is started. We can get away with this since all of the copycat scripts check to make sure we are in copycat mode before they do anything, so even if they are executed when not in copycat mode, they are basically a no-op.