Ⅰ. 插件描述
Easy access to the interface information of installed OCaml libraries for editors like Emacs and Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ocamlpro/ocp-index'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ocamlpro/ocp-index'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ocamlpro/ocp-index'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ocamlpro/ocp-index
Ⅳ. 文档说明
ocp-index is a light-weight tool and library providing easy access to the information contained in your OCaml cmi/cmt/cmti files.
It can be used to provide features like library interface browsing, auto-completion, show-type and goto-source.
This source tree builds:
ocp-index.lib, the engine as a library- the
ocp-indexcommand-line tool - the
ocp-grepcommand-line tool, that can search code for a given qualified
OCaml ident (including uses afteropens, etc.) - the
ocp-browsertool, which is a browser for installed OCaml APIs on the
terminal
The first tree are part of opam package ocp-index, and the latter is in its own ocp-browser package.
ocp-index is part of TypeRex, developed and maintained by OCamlPro. Documentation to install and use this tool is available on http://www.typerex.org/ocp-index.html
It is released under LGPL v3 with linking exception.