From 5c234d48eb9c71f28a3745af6ae81d057aa1116d Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Mar 2020 23:25:48 +0000 Subject: [PATCH] zsh: add Ctrl+W (emacs delete word) in Vi mode Yes, I see the irony in this one, it's just too convenient to pass up --- .config/zsh/.zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index e86aa53..bdf1d20 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -107,6 +107,7 @@ bindkey '^F' fzf-file-widget # Ctrl+F file search (fzf) bindkey "^F" fzf-file-widget bindkey "^V" edit-command-line bindkey -M vicmd "^V" edit-command-line +bindkey -M vicmd "^W" backward-delete-word bindkey -M vicmd d vi-backward-char bindkey -M vicmd h vi-down-line-or-history