zsh: set bindings without zvm

This commit is contained in:
surtur 2023-09-08 16:04:11 +02:00
parent 48d511befb
commit ecead9eac4
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -1,5 +1,3 @@
# as per https://github.com/jeffreytse/zsh-vi-mode#execute-extra-commands
function zvm_after_lazy_keybindings() {
# map Del escape sequence to actual Del key in all (n,i) modes to resemble vim instead of vi
bindkey -a '^[[3~' delete-char
# map arrow up/down to control fish-like history substring search and highlighting
@ -18,4 +16,3 @@ function zvm_after_lazy_keybindings() {
bindkey -M vicmd 'K' history-substring-search-up
bindkey -M vicmd 'J' history-substring-search-down
bindkey '^\' accept-and-hold
}