mantip


Ⅰ. 插件描述

quick tip from synopsis section in man pages for words

Ⅱ. 基本信息

创建日期:  2010-08-16
使用用户:  1
Github星:  1
插件作者:  Itay Donenhirsch

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

with default key binding enabled, move the cursor over a word, for example strcmp and press <leader>d
this will put the following line in the status line:

STRCMP(3) 1/2: int strcmp(const char s1, const char s2);
(STCMP(3) - man page, 1/2 - first line of two lines)

pressing <leader>d again will show the next decelration:

STRCMP(3) 2/2: int strncmp(const char s1, const char s2, size_t n);

<leader>D show the previous one, the list is cyclic

use <leader>1..9 to man specific sections

see code for more details

添加新评论