mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 07:58:00 +00:00
Save line length by combining enhanced brackets.
This commit is contained in:
parent
a22b49ee57
commit
6c17340c59
10
keyboard.zsh
10
keyboard.zsh
@ -63,9 +63,9 @@ if [[ "$keymap" == (emacs|) ]]; then
|
|||||||
bindkey -M emacs "$keyinfo[Escape]b" emacs-backward-word
|
bindkey -M emacs "$keyinfo[Escape]b" emacs-backward-word
|
||||||
[[ -n "$keyinfo[Escape]" ]] && \
|
[[ -n "$keyinfo[Escape]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Escape]f" emacs-forward-word
|
bindkey -M emacs "$keyinfo[Escape]f" emacs-forward-word
|
||||||
[[ -n "$keyinfo[Escape]" ]] && [[ -n "$keyinfo[Left]" ]] && \
|
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Left]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Left]" emacs-backward-word
|
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Left]" emacs-backward-word
|
||||||
[[ -n "$keyinfo[Escape]" ]] && [[ -n "$keyinfo[Right]" ]] && \
|
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Right]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Right]" emacs-forward-word
|
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Right]" emacs-forward-word
|
||||||
|
|
||||||
# Kill to the beginning of the line.
|
# Kill to the beginning of the line.
|
||||||
@ -85,7 +85,7 @@ if [[ "$keymap" == (emacs|) ]]; then
|
|||||||
# Search character.
|
# Search character.
|
||||||
[[ -n "$keyinfo[Control]" ]] && \
|
[[ -n "$keyinfo[Control]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Control]]" vi-find-next-char
|
bindkey -M emacs "$keyinfo[Control]]" vi-find-next-char
|
||||||
[[ -n "$keyinfo[Escape]" ]] && [[ -n "$keyinfo[Control]" ]] && \
|
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Control]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Control]]" vi-find-prev-char
|
bindkey -M emacs "$keyinfo[Escape]$keyinfo[Control]]" vi-find-prev-char
|
||||||
|
|
||||||
# Edit command in an external editor.
|
# Edit command in an external editor.
|
||||||
@ -195,9 +195,9 @@ elif [[ "$keymap" == vi ]]; then
|
|||||||
bindkey -M viins "$keyinfo[Escape]w" copy-region-as-kill
|
bindkey -M viins "$keyinfo[Escape]w" copy-region-as-kill
|
||||||
[[ -n "$keyinfo[Escape]" ]] && \
|
[[ -n "$keyinfo[Escape]" ]] && \
|
||||||
bindkey -M viins "$keyinfo[Escape]h" run-help
|
bindkey -M viins "$keyinfo[Escape]h" run-help
|
||||||
[[ -n "$keyinfo[Escape]" ]] && [[ -n "$keyinfo[Left]" ]] && \
|
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Left]" ]] && \
|
||||||
bindkey -M viins "$keyinfo[Escape]$keyinfo[Left]" emacs-backward-word
|
bindkey -M viins "$keyinfo[Escape]$keyinfo[Left]" emacs-backward-word
|
||||||
[[ -n "$keyinfo[Escape]" ]] && [[ -n "$keyinfo[Right]" ]] && \
|
[[ -n "$keyinfo[Escape]" && -n "$keyinfo[Right]" ]] && \
|
||||||
bindkey -M viins "$keyinfo[Escape]$keyinfo[Right]" emacs-forward-word
|
bindkey -M viins "$keyinfo[Escape]$keyinfo[Right]" emacs-forward-word
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
@ -15,7 +15,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
remove_archive=1
|
remove_archive=1
|
||||||
if [[ "$1" == "-r" ]] || [[ "$1" == "--remove" ]]; then
|
if [[ "$1" == "-r" || "$1" == "--remove" ]]; then
|
||||||
remove_archive=0
|
remove_archive=0
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
@ -11,7 +11,7 @@ Report bugs to <sorin.ionescu@gmail.com>.
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "-v" ]] || [[ "$1" == "--verbose" ]]; then
|
if [[ "$1" == "-v" || "$1" == "--verbose" ]]; then
|
||||||
verbose=0
|
verbose=0
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user