From 81054a2b13897b276e58e39a9f51ecb5c2994d17 Mon Sep 17 00:00:00 2001 From: David Mohl Date: Fri, 4 Jul 2014 10:31:36 +0900 Subject: [PATCH] added vim opp and compiling for opp --- .gitmodules | 3 +++ modules/opp/init.zsh | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/opp/init.zsh diff --git a/.gitmodules b/.gitmodules index 7a7a7b5..acd019d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/modules/opp/init.zsh b/modules/opp/init.zsh new file mode 100644 index 0000000..3e6bfb3 --- /dev/null +++ b/modules/opp/init.zsh @@ -0,0 +1,20 @@ +# Vim's text-objects-ish for zsh. + +# Author: Takeshi Banse +# 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