zsh: version-check visual keybind

This commit is contained in:
Henrik Lissner 2015-12-22 04:32:00 -05:00
parent 05171c04bb
commit b8b4e7b7ae

View file

@ -1,3 +1,5 @@
autoload -U is-at-least
bindkey -v
## vi-mode ###############
@ -12,11 +14,10 @@ zle -N change-surround surround
bindkey -a cs change-surround
bindkey -a ds delete-surround
bindkey -a ys add-surround
bindkey -M visual S add-surround
# text-objects
autoload -U is-at-least
if is-at-least 5.0.8; then
bindkey -M visual S add-surround
autoload -U select-quoted; zle -N select-quoted
for m in visual viopp; do
for c in {a,i}{\',\",\`}; do