From a3c330f6a73c27c349bb2ce0bdc7577109af9596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 22 Dec 2015 15:03:14 +0100 Subject: [PATCH] more bindings --- .zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index a5a3e1d..4b794d2 100644 --- a/.zshrc +++ b/.zshrc @@ -337,7 +337,7 @@ add-zsh-hook precmd title_precmd #---------------------------------- Bindings ---------------------------------- -bindkey -e +bindkey -v # General movement # Taken from http://wiki.archlinux.org/index.php/Zsh and Ubuntu's inputrc @@ -356,6 +356,8 @@ bindkey "\eOd" emacs-backward-word bindkey "\e\e[C" forward-word bindkey "\e\e[D" backward-word +bindkey ' ' magic-space # do history expansion on space + # for non RH/Debian xterm, can't hurt for RH/Debian xterm bindkey "\eOH" beginning-of-line bindkey "\eOF" end-of-line @@ -364,6 +366,7 @@ bindkey "\e[H" beginning-of-line bindkey "\e[F" end-of-line # Tab completion +bindkey "^r" history-incremental-search-backward bindkey '^i' complete-word # tab to do menu bindkey "\e[Z" reverse-menu-complete # shift-tab to reverse menu