After trying to define a custom binding:
(global-set-key (kbd "g l") 'evil-end-of-line)
I get:
(error Key sequence g h starts with non-prefix key g)
because g
is the start of navigation for many commands in evil.
How can I make it use my binding (which isn't bound to any other command: g l
) whilst keeping evil's prefix binding?
Since g
is the prefix for other evil commands, I'm unable to use it with another combo. I still want to keep other g <key>
commands like g g
g
to both (1) perform navigation as soon as you hit it and (2) wait for you to hitl
and then invokeevil-end-of-line
instead? You could perhaps usesit-for
and after that delay (i.e., if no user input) then use the usualg
command, else, ifl
is hit within that delay use your eol command.g
is the start of navigation for many commands inevil
. So I want to use the combination that isn't bound to any other command:g l
. But becauseg
is the prefix for other evil commands, I'm unable to use it with another combo. I still want to keep otherg ...
commands likegg
without a delay.