How to make Ctrl-C to start a new line while using Readline Vi mode. #716
-
Beta Was this translation helpful? Give feedback.
Answered by
chrisant996
Jan 21, 2025
Replies: 1 comment 1 reply
-
Bind the key to set editing-mode vi
set keymap vi-command
Control-l: clear-screen
Control-c: clink_ctrl_c
set keymap vi-insert
Control-l: clear-screen
Control-c: clink_ctrl_c I'll make a change to bind that by default for the vi keymaps, just like for the emacs keymap. (Bash doesn't need key bindings for it because Bash can't support binding anything to Ctrl-C in the first place.) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hexhexD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bind the key to
clink_ctrl_c
.I'll make a change to bind that by default for the vi keymaps, just like for the emacs keymap.
(Bash doesn't need key bindings for it because Bash can't support binding anything to Ctrl-C in the first place.)