how to remap command? #3004
Answered
by
the-mikedavis
theowenyoung
asked this question in
Q&A
-
I know how to remap keymap to command, but how to remap command? For example, I want to remap |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Jul 7, 2022
Replies: 1 comment 1 reply
-
Typable commands (ones you input with [keys.normal]
C-q = ":q!" Key sequences can be bound by using TOML sub-tables: [keys.normal]
q = { q = ":q!" }
# or more simply
q.q = ":q!" You cannot currently make custom aliases for commands though, so there's no way to map |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
theowenyoung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typable commands (ones you input with
:<command>
in normal mode) can be mapped by putting:
at the front of the command name:Key sequences can be bound by using TOML sub-tables:
You cannot currently make custom aliases for commands though, so there's no way to map
:qq
to:q!