2023-03-29 16:15:06 +02:00
|
|
|
# vim:set ft=zsh
|
|
|
|
# vi mode
|
|
|
|
bindkey -v
|
|
|
|
|
|
|
|
# Use vim keys in tab complete menu:
|
|
|
|
bindkey -M menuselect 'h' vi-backward-char
|
|
|
|
bindkey -M menuselect 'k' vi-up-line-or-history
|
|
|
|
bindkey -M menuselect 'l' vi-forward-char
|
|
|
|
bindkey -M menuselect 'j' vi-down-line-or-history
|
|
|
|
|
2023-03-29 18:23:08 +02:00
|
|
|
# Widgets
|
2023-06-13 16:09:53 +02:00
|
|
|
bindkey '^e' _lfwrap
|
2023-03-29 16:15:06 +02:00
|
|
|
bindkey '^g' lg
|
2023-03-30 14:15:23 +02:00
|
|
|
bindkey -M vicmd v edit-command-line
|
2023-03-29 16:15:06 +02:00
|
|
|
|
2023-03-29 18:23:08 +02:00
|
|
|
bindkey '^?' backward-delete-char
|
2023-03-29 16:15:06 +02:00
|
|
|
bindkey '^[[P' delete-char
|
|
|
|
bindkey "^[[H" beginning-of-line
|
|
|
|
bindkey '^[[F' end-of-line
|
|
|
|
bindkey '^[[1;5C' forward-word
|
|
|
|
bindkey '^[[1;5D' backward-word
|