Ⅰ. 插件描述
quick tip from synopsis section in man pages for wordsⅡ. 基本信息
|
Ⅲ. 安装方法
使用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