Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change `stty intr` to another key combination in order to use ^c for zsh vi-mode?

I wanted to use Ctrl-c to return to normal vim mode when using zsh in vi-mode. I managed to unmap it using:

stty intr ^-
stty intr undef

and then used bindkey '^c' vi-cmd-mode in my .zshrc. Everything is working fine but how do I reclaim my Ctrl-c functionality to a different key binding?

like image 330
Dionysis Avatar asked Nov 04 '13 19:11

Dionysis


1 Answers

Adding as an answer, for the record:

stty intr ^E or similar should work. :)

like image 108
user2719058 Avatar answered Nov 14 '22 19:11

user2719058