From 08a0b5ac140bb91f9d485d4b546a8a55157515ce Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 12 Jun 2022 14:15:19 +0200 Subject: [zshrc]: add C-Left,C-Right keybindings in vi ins/cmd mode --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index 991b5cd..bffa38e 100644 --- a/zshrc +++ b/zshrc @@ -222,6 +222,10 @@ bindkey -M vicmd "$key[CtrlA]" vi-digit-or-beginning-of-line bindkey -M viins "$key[CtrlA]" vi-digit-or-beginning-of-line bindkey -M vicmd "$key[CtrlE]" vi-end-of-line bindkey -M viins "$key[CtrlE]" vi-end-of-line +bindkey -M viins "$key[CtrlLeft]" backward-word +bindkey -M vicmd "$key[CtrlLeft]" backward-word +bindkey -M viins "$key[CtrlRight]" forward-word +bindkey -M vicmd "$key[CtrlRight]" forward-word bindkey -M viins "$key[CtrlR]" history-incremental-search-backward bindkey -M viins "$key[CtrlS]" history-incremental-search-forward -- cgit v1.2.3