ocaml.annot.pl


Ⅰ. 插件描述

Displays OCaml type annotations

Ⅱ. 基本信息

创建日期:  2005-02-02
使用用户:  1
Github星:  2
插件作者:  David Baelde

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/ocaml-annot-pl'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/ocaml-annot-pl'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/ocaml-annot-pl'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ocaml.annot.pl

Ⅳ. 文档说明

When editing a OCaml file for which annotations have been compiled, press <F3> and get a message with the type of the value under the cursor.

I didn't want to use the python code from original ocaml.vim in omlet.vim (script_id=1196), so I wrote this tiny hack using an external perl script -- no need for feature "perl". I only print out the first line, because I found no convenient way to print everything without having the message bar to grow big, mess the screen and have a prompt... To be continued.

添加新评论