zsh: pre 5.0.8 compatibility
This commit is contained in:
parent
7e90dd373b
commit
7e4cb772c4
23
zsh/keybinds
23
zsh/keybinds
|
@ -15,18 +15,21 @@ bindkey -a ys add-surround
|
||||||
bindkey -M visual S add-surround
|
bindkey -M visual S add-surround
|
||||||
|
|
||||||
# text-objects
|
# text-objects
|
||||||
autoload -U select-quoted; zle -N select-quoted
|
autoload -U is-at-least
|
||||||
for m in visual viopp; do
|
if is-at-least 5.0.8; then
|
||||||
for c in {a,i}{\',\",\`}; do
|
autoload -U select-quoted; zle -N select-quoted
|
||||||
bindkey -M $m $c select-quoted
|
for m in visual viopp; do
|
||||||
|
for c in {a,i}{\',\",\`}; do
|
||||||
|
bindkey -M $m $c select-quoted
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
autoload -U select-bracketed; zle -N select-bracketed
|
||||||
autoload -U select-bracketed; zle -N select-bracketed
|
for m in visual viopp; do
|
||||||
for m in visual viopp; do
|
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
||||||
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
bindkey -M $m $c select-bracketed
|
||||||
bindkey -M $m $c select-bracketed
|
done
|
||||||
done
|
done
|
||||||
done
|
fi
|
||||||
|
|
||||||
# Allow command line editing in an external editor.
|
# Allow command line editing in an external editor.
|
||||||
autoload -Uz edit-command-line; zle -N edit-command-line
|
autoload -Uz edit-command-line; zle -N edit-command-line
|
||||||
|
|
Loading…
Reference in a new issue