From: Michael Prokop Date: Thu, 10 Nov 2011 13:47:23 +0000 (+0100) Subject: zshrc: fix delete-word keybinding X-Git-Tag: v0.5.0~89 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=262bccc0dff00ed66c8ef92e1a2cfe4e6994d8cb zshrc: fix delete-word keybinding bindkey "3~" causes 0.0.3~6.gbp9d3192 to become 0.0.6.gbp9d3192. So instead lets use bindkey '^[[3~' for Modeswitch/Alt ad bindkey '^[[3;3~' for Alt_L. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 0f6c36f..5ba3b93 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -606,7 +606,8 @@ bindkey '\e[B' down-line-or-search # - ## alt-backspace is already the default for backwards-delete-word ## let's also set alt-delete for deleting current word (right of cursor) #k# Kill right-side word -bindkey "3~" delete-word +bindkey '^[[3~' delete-word # Modeswitch +bindkey '^[[3;3~' delete-word # Alt_L ## use Ctrl-left-arrow and Ctrl-right-arrow for jumping to word-beginnings on the CL bindkey "\e[5C" forward-word