Skip to content

How to make Ctrl-C to start a new line while using Readline Vi mode. #716

Answered by chrisant996
hexhexD asked this question in Q&A
Discussion options

You must be logged in to vote

Bind the key to clink_ctrl_c.

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.)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by hexhexD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question about something
2 participants