1
0
Fork 0

added vim opp and compiling for opp

pull/636-vim-text-objects
David Mohl 10 years ago
parent bf9dbfd5b9
commit 81054a2b13

3
.gitmodules vendored

@ -7,3 +7,6 @@
[submodule "modules/completion/external"]
path = modules/completion/external
url = https://github.com/zsh-users/zsh-completions.git
[submodule "modules/opp/external"]
path = modules/opp/external
url = https://github.com/hchbaw/opp.zsh.git

@ -0,0 +1,20 @@
# Vim's text-objects-ish for zsh.
# Author: Takeshi Banse <takebi@laafc.net>
# License: Public Domain
# Thank you very much, Bram Moolenaar!
# I want to use the Vim's text-objects in zsh.
if [[ ! -f ${0:h}/functions/opp.zwc ]] ||
[[ ! -f ${0:h}/functions/opp-install.zwc ]]; then
(
. "${0:h}/external/opp.zsh"
. "${0:h}/external/opp/surround.zsh"
. "${0:h}/external/opp/textobj-between.zsh"
opp-zcompile "${0:h}/external/opp.zsh" ${0:h}/functions > /dev/null
)
fpath+=${0:h}/functions > /dev/null
. ${0:h}/functions/opp-install
autoload opp
fi
opp-install
Loading…
Cancel
Save