1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 05:38:01 +00:00

Transpose search previous character, match bracket

This commit is contained in:
Sorin Ionescu 2012-03-18 11:51:02 -04:00
parent f5a976637e
commit 541f05eb67

View File

@ -86,11 +86,13 @@ if [[ "$keymap" == (emacs|) ]]; then
[[ -n "$keyinfo[Escape]" ]] && \ [[ -n "$keyinfo[Escape]" ]] && \
bindkey -M emacs "$keyinfo[Escape]_" redo bindkey -M emacs "$keyinfo[Escape]_" redo
# Search character. # Search previous character.
[[ -n "$keyinfo[Control]" ]] && \ [[ -n "$keyinfo[Control]" ]] && \
bindkey -M emacs "$keyinfo[Control]]" vi-find-next-char bindkey -M emacs "$keyinfo[Control]X$keyinfo[Control]B" vi-find-prev-char
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Control]" ]] && \
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Control]]" vi-find-prev-char # Match bracket.
[[ -n "$keyinfo[Control]" ]] && \
bindkey -M emacs "$keyinfo[Control]X$keyinfo[Control]]" vi-match-bracket
# Edit command in an external editor. # Edit command in an external editor.
[[ -n "$keyinfo[Control]" ]] && \ [[ -n "$keyinfo[Control]" ]] && \