Skip to content
Discussion options

You must be logged in to vote

Typable commands (ones you input with :<command> in normal mode) can be mapped by putting : at the front of the command name:

[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 :qq to :q!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mm459
Comment options

Answer selected by theowenyoung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants