From: Bernhard Tittelbach Date: Wed, 20 Jul 2011 17:12:27 +0000 (+0200) Subject: zshrc: Ctrl/Alt-Cursor moves between words X-Git-Tag: v0.4.00~17 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=7b48dd921ea8a8fc17db77705926258eb38c213d;p=grml-etc-core.git zshrc: Ctrl/Alt-Cursor moves between words --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 602fbd2..d8f71d0 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -608,6 +608,15 @@ bindkey '\e[B' down-line-or-search # - #k# Delete current word bindkey "3~" delete-word +## use Ctrl-left-arrow and Ctrl-right-arrow for jumping to word-beginnings on the CL +bindkey "\e[5C" forward-word +bindkey "\e[5D" backward-word +bindkey "\e[1;5C" forward-word +bindkey "\e[1;5D" backward-word +## the same for alt-left-arrow and alt-right-arrow +bindkey '^[[1;3C' forward-word +bindkey '^[[1;3D' backward-word + bindkey '^xp' history-beginning-search-backward bindkey '^xP' history-beginning-search-forward bindkey "\e[5~" history-beginning-search-backward #PageUp