shell/zsh: reformat keybinds.zsh & fix visual map in older zsh
This commit is contained in:
parent
feea559aec
commit
566a187f3d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue