From 285e74f1a7d028b8dfc00b776357e13a2e5fa3fb Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Oct 2020 09:40:35 +0200 Subject: [PATCH] zsh: Change key to edit in vim to ctrl-e Previously the key was space (when in vi command mode), but that can too easily be accidentally hit. Using ctrl-e (when in vi command mode) makes mnemonic sense ('edit'), and is hard to hit accidentally. It also mirrors the c-x c-e mapping that bash (and zsh?) use when in emacs mode rather than vim. --- zsh/.config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 1f24c5a..3b9938d 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -172,7 +172,7 @@ bindkey '^r' history-incremental-search-backward # Send command to editor and back for execution zle -N edit-command-line -bindkey -M vicmd ' ' edit-command-line +bindkey -M vicmd '^e' edit-command-line # Deduplicate PATH - remove any duplicate entries from PATH # from: https://unix.stackexchange.com/questions/40749/remove-duplicate-path-entries-with-awk-command