1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 18:39:26 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
55190ffb42 added readme 2014-07-04 10:59:13 +09:00
81054a2b13 added vim opp and compiling for opp 2014-07-04 10:31:36 +09:00
3 changed files with 42 additions and 0 deletions

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "modules/completion/external"] [submodule "modules/completion/external"]
path = modules/completion/external path = modules/completion/external
url = https://github.com/zsh-users/zsh-completions.git 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

19
modules/opp/README.md Normal file
View File

@ -0,0 +1,19 @@
VIM text objects
========================
Integrates [opp][1] into Prezto, which implements [vim text objects][2] right into vim mode of prezto.
Due to some conflicts with prezto loading, opp will get compiled during initial run.
Authors
-------
*The authors of this module should be contacted via the [issue tracker][3].*
- [Takeshi Banse](https://github.com/hchbaw)
[1]: https://github.com/hchbaw/opp.zsh
[2]: http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/
[3]: https://github.com/hchbaw/opp.zsh/issues?state=open

20
modules/opp/init.zsh Normal file
View File

@ -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