zsh: add bindings for history search
This commit is contained in:
parent
8ea77e45ba
commit
8d4497dab2
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ zle-keymap-select() {
|
||||||
}
|
}
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
||||||
|
# Search through history in insert mode.
|
||||||
|
bindkey -M viins '^j' history-beginning-search-forward
|
||||||
|
bindkey -M viins '^k' history-beginning-search-backward
|
||||||
|
|
||||||
# Restore some common and useful emacs mode shortcut.
|
# Restore some common and useful emacs mode shortcut.
|
||||||
bindkey -M viins '^a' vi-beginning-of-line
|
bindkey -M viins '^a' vi-beginning-of-line
|
||||||
bindkey -M viins '^e' vi-end-of-line
|
bindkey -M viins '^e' vi-end-of-line
|
||||||
|
|
Loading…
Add table
Reference in a new issue