From c41e395325d19cca0c725d244f9b0dcc69f214ac Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 21 Oct 2022 17:33:57 +0200 Subject: [PATCH] vim:keys: Use non-vi versions of backward delete The `vi-` versions stop working after using `push-input` and trying to edit the reappeared line. This could be an upstream bug, as I can recreate it with `zsh -f`. --- .config/zsh/zshrc.d/60-keys.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index d212a2f..4d32114 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -60,12 +60,12 @@ bindkey -s '^[[13;2u' '^M' # shift-return ## Navigation bindkey "$terminfo[kcbt]" reverse-menu-complete # shift-tab -bindkey "$terminfo[khome]" vi-beginning-of-line # home -bindkey "$terminfo[kend]" vi-end-of-line # end -bindkey "$terminfo[kbs]" vi-backward-delete-char # backspace -bindkey "$terminfo[kdch1]" vi-delete-char # delete -bindkey '^[[127;5u' vi-backward-kill-word # ctrl-backspace -bindkey '^W' vi-backward-kill-word # ctrl-W +bindkey "$terminfo[khome]" beginning-of-line # home +bindkey "$terminfo[kend]" end-of-line # end +bindkey "$terminfo[kbs]" backward-delete-char # backspace +bindkey "$terminfo[kdch1]" delete-char # delete +bindkey '^[[127;5u' backward-kill-word # ctrl-backspace +bindkey '^W' backward-kill-word # ctrl-W bindkey '^[[1;5D' vi-backward-word # ctrl-left bindkey '^[[1;5C' vi-forward-word # ctrl-right bindkey '^[[3;5~' vi-kill-word # ctrl-delete