mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
[Fix #233] Bind history-substring-search using $key_info
This commit is contained in:
parent
88af470bd6
commit
2250f93fa3
@ -24,8 +24,17 @@ fi
|
|||||||
# Key Bindings
|
# Key Bindings
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Emacs
|
||||||
bindkey -M emacs "$key_info[Control]P" history-substring-search-up
|
bindkey -M emacs "$key_info[Control]P" history-substring-search-up
|
||||||
bindkey -M emacs "$key_info[Control]N" history-substring-search-down
|
bindkey -M emacs "$key_info[Control]N" history-substring-search-down
|
||||||
|
|
||||||
|
# Vi
|
||||||
bindkey -M vicmd "k" history-substring-search-up
|
bindkey -M vicmd "k" history-substring-search-up
|
||||||
bindkey -M vicmd "j" history-substring-search-down
|
bindkey -M vicmd "j" history-substring-search-down
|
||||||
|
|
||||||
|
# Emacs and Vi
|
||||||
|
for keymap in 'emacs' 'viins'; do
|
||||||
|
bindkey -M "$keymap" "$key_info[Up]" history-substring-search-up
|
||||||
|
bindkey -M "$keymap" "$key_info[Down]" history-substring-search-down
|
||||||
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user