Override ^R with hsmw so that regular i-search doesn't interfere

This commit is contained in:
Sebastian Gniazdowski 2016-09-25 10:34:11 +02:00
parent 8e04160835
commit 8347d80f08

View file

@ -203,6 +203,9 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
# Needed for Fedora 23, zsh-5.1.1
bindkey -M hsmw ' ' self-insert
# Removal of default Ctrl-R binding
bindkey -M hsmw '^R' "$down_widget"
# Substitute self-insert, backward-delete-char, delete-char
zle -A self-insert saved-self-insert
zle -A backward-delete-char saved-backward-delete-char