From 95733c61c23a030ce4e73bbe3dc8b240d3f68010 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 19 Apr 2001 19:43:45 +0000 Subject: bindkey -rp removes prefix bindings; bindkey -p bugfix --- Doc/Zsh/zle.yo | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Doc/Zsh/zle.yo') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 87e5182b3..46d604a0c 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -175,7 +175,20 @@ Only keys that are unbound or bound to tt(self-insert) are affected. item(tt(-r) var(in-string) ...)( Unbind the specified var(in-string)s in the selected keymap. This is exactly equivalent to binding the strings to tt(undefined-key). + When tt(-R) is also used, interpret the var(in-string)s as ranges. + +When tt(-p) is also used, the var(in-string)s specify prefixes. Any +binding that has the given var(in-string) as a prefix, not including the +binding for the var(in-string) itself, if any, will be removed. For +example, + +example(bindkey -rpM viins '^[') + +will remove all bindings in the vi-insert keymap beginning with an escape +character (probably cursor keys), but leave the binding for the escape +character itself (probably tt(vi-cmd-mode)). This is incompatible with the +option tt(-R). ) item(tt(-s) var(in-string out-string) ...)( Bind each var(in-string) to each var(out-string). -- cgit 1.4.1