vim-betterk


Ⅰ. 插件描述

Improve vim's K command by using programming language-specific help viewers

Ⅱ. 基本信息

创建日期:  2016-01-11
使用用户:  1
Github星:  3
插件作者:  Sylvia van Os

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## vim-betterK

vim comes with a K command, which runs a program to lookup the keyword under
the cursor. However, by default, the K command uses man for everything.

vim-betterK improves the K command by using appropriate locally installed help
viewers depending on the programming language in question, instead of using
man for everything.

How to use

vim-betterK overwrites the regular K command, functioning in the same way. Put
your cursor on some text, or select some text in visual mode, and press K to
get keyword information.

To call a specific manpage, regardless of the filetype-specific behaviour,
prefix K with a count. For example, to check out the selection in man 3, type

3K

How to install

If you're using Vundle, add Plugin 'TheLastProject/vim-betterK'

Default viewers

C: man 3; man 2
Haskell: hoogle; hoogle (online)
Perl: perldoc
PHP: pman
Python: pydoc
Ruby: ri
sh: man 1
vim: built-in :help

License

GPLv3+

添加新评论