feat: zsh escape vim mode with esc

This commit is contained in:
Flinner Yuu 2022-05-23 00:39:55 +03:00
parent 683ecb7b91
commit a9366f27c2
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 2 additions and 0 deletions

View File

@ -105,7 +105,9 @@ function zle-keymap-select zle-line-init zle-line-finish
viins|main) print -n '\033[6 q';; # block cursor
esac
}
# Quit with jk or ESC
bindkey jk vi-cmd-mode
bindkey '\e' vi-cmd-mode
# exit on partianl command with Ctrl-D
exit_zsh() { exit }