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 -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 '^K' up-line-or-history # C-k
|
||||||
bindkey -M vicmd '^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 '^J' down-line-or-history # C-j
|
||||||
bindkey -M vicmd '^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 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 -M viins '\e.' insert-last-word # M-.
|
||||||
|
|
||||||
bindkey '^[[Z' reverse-menu-complete # S-Tab
|
bindkey '^[[Z' reverse-menu-complete # S-Tab
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
insert-sudo() {
|
insert-sudo() {
|
||||||
local sudo_template="${SUDO:=sudo} "
|
local sudo_template="${SUDO:=sudo} "
|
||||||
local template_len="${#sudo_template}"
|
local template_len="${#sudo_template}"
|
||||||
@ -40,4 +47,4 @@ bindkey -M viins '^S' insert-sudo # C-s
|
|||||||
|
|
||||||
bindkey '`' autosuggest-accept
|
bindkey '`' autosuggest-accept
|
||||||
bindkey '^?' backward-delete-char
|
bindkey '^?' backward-delete-char
|
||||||
bindkey '^W' backward-delete-word
|
bindkey '^W' backward-delete-word
|
||||||
Loading…
x
Reference in New Issue
Block a user