Ⅰ. 插件描述
Use Vim as a MANPAGER programⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lambdalisue/vim-manpager'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lambdalisue/vim-manpager'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lambdalisue/vim-manpager'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lambdalisue/vim-manpager
Ⅳ. 文档说明
vim-manpager
vim-manpager is plugin to use Vim as a MANPAGER.
It also improve the behavior of :Man command and mappings in man file.
See lambdalisue/vim-pager for PAGER.

Install
" Vundle.vim
Plugin 'lambdalisue/vim-manpager'
" neobundle.vim
NeoBundle 'lambdalisue/vim-manpager'
" neobundle.vim (Lazy)
NeoBundleLazy 'lambdalisue/vim-manpager', {
\ 'autoload': {
\ 'commands': 'MANPAGER',
\}}Usage
To open vim via man command, use the following settings in your shell.
$ export MANPAGER="vim -c MANPAGER -"
$ man gitIn Vim, you can use Man command to open a man page (the plugin overwrite the
default Man command defined in default ftplugin/man.vim to improve the
behavior)
:Man gitIn man buffer, you can use the following keymaps
KOpen the manual page for the word under the cursorEnterOpen the manual page for the word under the cursorCtrl-]Open the manual page for the word under the cursor2-LeftMouseOpen the manual page for the word under the cursorTabOpen next manual page in the historyShift-TabOpen previous manual page in the history]tFind next keyword and move the cursor onto[tFind previous keyword and move the cursor ontoqClose the manual page