Ⅰ. 插件描述
Vim plugin that integrates chicken-doc for scheme filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sergi/vim-chicken-doc'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sergi/vim-chicken-doc'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sergi/vim-chicken-doc'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sergi/vim-chicken-doc
Ⅳ. 文档说明
## vim-chicken-doc
vim-chicken-doc is a vim plugin that integrates the documentation system of
chicken scheme in vim.
Installation
vim-chicken-doc is an ftplugin and has to be installed in your ftplugin
- Installing it with vundle or pathogen will work too. Installing
- in the plugin directory won't work
In order for this plugin to work, you need to install the chicken-doc egg,
along with a tarball with the latest documentation:
sudo chicken-install chicken-doc
echo "(use chicken-doc)" | tee -a "$HOME/.csirc"
cd `csi -p "(chicken-home)"`
curl http://3e8.org/pub/chicken-doc/chicken-doc-repo.tgz | tar zxPlease note that depending on the platform you are, you might need to be root
for the above commands to work.
Also note that you need a line like the following in your .vimrc file:filetype plugin on
Usage
Typing <leader> cw when the cursor is on a particular keyword will query
chicken-doc for that keyword and present it in a small vertical buffer by
default.
TODO
- Better documentation
- Disambiguation for similar command sin different contexts
Other
This plugin is inspired by the [vim-pydoc
plugin](https://github.com/fs111/pydoc.vim).