2023-11-20 14:30:34 +01:00
|
|
|
# vim: set ft=sh
|
2023-03-29 16:15:06 +02:00
|
|
|
# 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-11-20 14:30:34 +01:00
|
|
|
bindkey '^e' lfwrap
|
2023-03-29 16:15:06 +02:00
|
|
|
bindkey '^g' lg
|
2023-11-20 14:30:34 +01: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
|