zsh: version-check visual keybind
This commit is contained in:
parent
05171c04bb
commit
b8b4e7b7ae
|
@ -1,3 +1,5 @@
|
||||||
|
autoload -U is-at-least
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
## vi-mode ###############
|
## vi-mode ###############
|
||||||
|
@ -12,11 +14,10 @@ zle -N change-surround surround
|
||||||
bindkey -a cs change-surround
|
bindkey -a cs change-surround
|
||||||
bindkey -a ds delete-surround
|
bindkey -a ds delete-surround
|
||||||
bindkey -a ys add-surround
|
bindkey -a ys add-surround
|
||||||
bindkey -M visual S add-surround
|
|
||||||
|
|
||||||
# text-objects
|
# text-objects
|
||||||
autoload -U is-at-least
|
|
||||||
if is-at-least 5.0.8; then
|
if is-at-least 5.0.8; then
|
||||||
|
bindkey -M visual S add-surround
|
||||||
autoload -U select-quoted; zle -N select-quoted
|
autoload -U select-quoted; zle -N select-quoted
|
||||||
for m in visual viopp; do
|
for m in visual viopp; do
|
||||||
for c in {a,i}{\',\",\`}; do
|
for c in {a,i}{\',\",\`}; do
|
||||||
|
|
Loading…
Reference in a new issue