summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-06-12 14:15:19 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-06-12 14:15:19 +0200
commit08a0b5ac140bb91f9d485d4b546a8a55157515ce (patch)
treeec45ae54790a4ee543cb7f43c49eda80fd6dcf6f
parente3350af5b8d7fdfba49f7ec692cd8a95aeb3f9a9 (diff)
downloaddotfiles-08a0b5ac140bb91f9d485d4b546a8a55157515ce.tar.gz
dotfiles-08a0b5ac140bb91f9d485d4b546a8a55157515ce.zip
[zshrc]: add C-Left,C-Right keybindings in vi ins/cmd mode
-rw-r--r--zshrc4
1 files changed, 4 insertions, 0 deletions
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