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.
This commit is contained in:
Marty Oehme 2020-10-22 09:40:35 +02:00
parent 454073b408
commit 285e74f1a7
Signed by: Marty
GPG Key ID: B7538B8F50A1C800

View File

@ -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