Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
zsh backup
## enable changes inside brackets e.g. <di+)>, <ci+[>
# autoload -U select-bracketed
# autoload -U select-quoted
# zle -N select-quoted
# zle -N select-bracketed
# for km in visual viopp; do
# bindkey -M $km -- '-' vi-up-line-or-history
# for c in {a,i}${(s..)^:-\'\"\`\|,./:;-=+@}; do
# bindkey -M $km $c select-quoted
# done
# for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
# bindkey -M $km $c select-bracketed
# done
# done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment