diff --git a/home/user/.config/zsh/mappings b/home/user/.config/zsh/mappings index 7d56053..2619029 100644 --- a/home/user/.config/zsh/mappings +++ b/home/user/.config/zsh/mappings @@ -4,7 +4,11 @@ bindkey -v bindkey -M viins 'jf' vi-cmd-mode -bindkey ' ' magic-space # history expansion on space +bindkey -M visual 'jf' vi-cmd-mode +bindkey -M visual 'i' vi-insert +bindkey -M visual 'a' vi-add-next + +bindkey ' ' magic-space bindkey '^K' up-line-or-history # C-k bindkey -M vicmd '^K' up-line-or-history # C-k @@ -12,13 +16,16 @@ bindkey -M vicmd '^K' up-line-or-history # C-k bindkey '^J' down-line-or-history # C-j bindkey -M vicmd '^J' down-line-or-history # C-j +bindkey '^U' kill-whole-line # C-u bindkey -M vicmd '^U' kill-whole-line # C-u -bindkey -M viins '^U' kill-whole-line # C-u bindkey -M viins '\e.' insert-last-word # M-. + bindkey '^[[Z' reverse-menu-complete # S-Tab + + insert-sudo() { local sudo_template="${SUDO:=sudo} " local template_len="${#sudo_template}" @@ -40,4 +47,4 @@ bindkey -M viins '^S' insert-sudo # C-s bindkey '`' autosuggest-accept bindkey '^?' backward-delete-char -bindkey '^W' backward-delete-word +bindkey '^W' backward-delete-word \ No newline at end of file