Hints for C Library Functions


Ⅰ. 插件描述

vim-hints_man plugins

Ⅱ. 基本信息

创建日期:  2007-03-13
使用用户:  2
Github星:  1
插件作者:  Charles Campbell

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'pix/hints-for-c-library-functions'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'pix/hints-for-c-library-functions'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'pix/hints-for-c-library-functions'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/pix/vim-hints_man

Ⅳ. 文档说明

This script may be manually sourced or, if placed in .vim/ftplugin/c, will be automatically sourced whenever a C file is edited (which is where vimball will put it).  The prototypes within it are based on gcc's /usr/share/man/man3 directory.

This plugin is truly simple to use: after one has typed a function name, a protype "hint" will be shown.

ex.    printf(

       will result in

          int printf(const char * format, ...)

       being echo'd at the bottom of the display.

You'll probably want your cmdheight option set to at least two (ie.  set ch=2).

(see vimscript#1825 for man-2 function hints)
(see http://www.drchip.org/astronaut/vim/index.html#HINTSMAN3 for the latest version)

添加新评论