This commit is contained in:
David 2024-04-22 14:09:04 +02:00 committed by GitHub
commit a8b6518dad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -322,6 +322,13 @@ bindkey -M vicmd "u" undo
bindkey -M viins "$key_info[Control]_" undo
bindkey -M vicmd "$key_info[Control]R" redo
# Allow remapping of command-mode key
zstyle -s ':prezto:module:editor' escape-remap 'escape_remap'
if [[ ! -z "$escape_remap" ]]; then
bindkey -M viins "$escape_remap" vi-cmd-mode
fi
if (( $+widgets[history-incremental-pattern-search-backward] )); then
bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward

View file

@ -66,6 +66,9 @@ zstyle ':prezto:load' pmodule \
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
# If you prefer to have a different Escape key in 'vi' mode
# zstyle ':prezto:module:editor' escape-remap 'jk'
# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'