From cc54e3f16cb8738dcd5c5624346b3d1da1289f4f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 11 May 2008 17:00:50 +0100 Subject: [PATCH] customise some bindings from the guide --- .zsh/zshrc/80_bindkeys | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.zsh/zshrc/80_bindkeys b/.zsh/zshrc/80_bindkeys index 999d2db..5bc0c20 100644 --- a/.zsh/zshrc/80_bindkeys +++ b/.zsh/zshrc/80_bindkeys @@ -14,4 +14,14 @@ bindkey -e # history expansion on pressing space bindkey ' ' magic-space +# prefix search (up to cursor position) +bindkey '^xp' history-beginning-search-backward +bindkey '^xn' history-beginning-search-forward + +# repeat the previous shell-word ($WORDCHARS) +bindkey '\e=' copy-prev-shell-word + +# allow for better ad-hoc multiline editing +bindkey '\eq' push-line-or-edit + # vim:ft=zsh -- 2.39.5