From b8b4e7b7ae789a6f2af1db59eb7009a1de2738b0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 22 Dec 2015 04:32:00 -0500 Subject: [PATCH] zsh: version-check visual keybind --- zsh/keybinds | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/keybinds b/zsh/keybinds index 91fa0265..3a186276 100644 --- a/zsh/keybinds +++ b/zsh/keybinds @@ -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