mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-01-23 13:32:16 +08:00
added option to remap escape key
This commit is contained in:
parent
f2a826e963
commit
b3bf0f394f
@ -247,6 +247,13 @@ bindkey -M vicmd "v" edit-command-line
|
|||||||
bindkey -M vicmd "u" undo
|
bindkey -M vicmd "u" undo
|
||||||
bindkey -M vicmd "$key_info[Control]R" redo
|
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
|
if (( $+widgets[history-incremental-pattern-search-backward] )); then
|
||||||
bindkey -M vicmd "?" history-incremental-pattern-search-backward
|
bindkey -M vicmd "?" history-incremental-pattern-search-backward
|
||||||
bindkey -M vicmd "/" history-incremental-pattern-search-forward
|
bindkey -M vicmd "/" history-incremental-pattern-search-forward
|
||||||
|
@ -41,6 +41,9 @@ zstyle ':prezto:load' pmodule \
|
|||||||
# Set the key mapping style to 'emacs' or 'vi'.
|
# Set the key mapping style to 'emacs' or 'vi'.
|
||||||
zstyle ':prezto:module:editor' key-bindings 'emacs'
|
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 ../..
|
# Auto convert .... to ../..
|
||||||
# zstyle ':prezto:module:editor' dot-expansion 'yes'
|
# zstyle ':prezto:module:editor' dot-expansion 'yes'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user