zsh fix zle
This commit is contained in:
parent
9ab0d024a6
commit
20e0ec5f7a
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user