From 40468ff39ae7f6b68eba5d137be8fee0254700e5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 Dec 2015 02:01:07 -0500 Subject: [PATCH] Vim's C-x C-l in zsh --- zsh/keybinds.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zsh/keybinds.zsh b/zsh/keybinds.zsh index ba3caec8..093f6b76 100644 --- a/zsh/keybinds.zsh +++ b/zsh/keybinds.zsh @@ -78,6 +78,14 @@ if [ -n "$TMUX" ]; then zstyle ':completion:tmux-pane-words-anywhere:*' matcher-list 'b:=* m:{A-Za-z}={a-zA-Z}' fi +# Vim's C-x C-l in zsh +history-beginning-search-backward-then-append() { + zle history-beginning-search-backward + zle vi-add-eol +} +zle -N history-beginning-search-backward-then-append +bindkey -M viins '^x^l' history-beginning-search-backward-then-append + # Fixes bindkey -M vicmd "^[[3~" delete-char bindkey "^[[3~" delete-char