Skip to content

Instantly share code, notes, and snippets.

@hchbaw
Created October 15, 2010 21:06
Show Gist options
  • Save hchbaw/628951 to your computer and use it in GitHub Desktop.
Save hchbaw/628951 to your computer and use it in GitHub Desktop.
#!zsh
# textobj-between code.
# Thank you very much, thinca and tarao!
#
# http://d.hatena.ne.jp/thinca/20100614/1276448745
# http://d.hatena.ne.jp/tarao/20100715/1279185753
def-oppc-textobj-between () {
def-oppc-inbetween-2 "$1" "opp+i$1" "opp+a$1" oppc-tb-main
}
oppc-tb-main () {
shift
local c; read -s -k 1 c
[[ "$c" == [[:print:]] ]] || return
zle -U "$c"
"$@"
}
def-oppc-textobj-between 'F'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment