shell/zsh: reformat keybinds.zsh & fix visual map in older zsh

This commit is contained in:
Henrik Lissner 2018-01-01 02:12:06 -05:00
parent feea559aec
commit 566a187f3d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -20,10 +20,12 @@ 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
# add vimmish text-object support to zsh # <5.0.8 doesn't have visual map
if is-at-least 5.0.8; then if is-at-least 5.0.8; then
bindkey -M visual S add-surround
# add vimmish text-object support to zsh
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