Ⅰ. 插件描述
A vim plugin to reveal extended URLs from the buildout cacheⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'claytron/revealextends'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'claytron/revealextends'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'claytron/revealextends'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/claytron/revealextends
Ⅳ. 文档说明
Developers can use zc.buildout to manage the build of a software project. It
is most commonly used in the Zope and Plone world, but has been gaining
traction in other communities like Django.
One of the nice things about buildout is the ability to define the
configuration via ini style files. You can extend a local file or a URL. In
version 1.4.0 of buildout, the option to cache the URL locally was added along
with the new download API.
Here is an example: >
[buildout]
versions = versions
extends =
http://dist.example.org/versions.cfg
versions.cfg
This allows you to pull in a list of versions from example.org. If you have
your default.cfg setup to cache the URL then you could find that file
- This requires that you know the md5 hash of the URL string. Not the
- convenient way to find the file. This is where the plugin comes in
handy.
The plugin allows you to use the current line, a visual selection or a string
passed in to get the contents of the extended URL using the :RevealExtends command.
See the included docs for more information.
Python support is required for retrieving the URL from the internet if it can't
be found in the cache.
See the code on github: http://github.com/claytron/RevealExtends