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:
parent
454073b408
commit
285e74f1a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue