Ⅰ. 插件描述
Easier navigation within Vim help filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dahu/vim-help-the-story-of-us'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dahu/vim-help-the-story-of-us'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dahu/vim-help-the-story-of-us'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dahu/vim-help
Ⅳ. 文档说明
vim-help
Easier navigation within Vim help files
TIP: If you like vim-help and want to share the W00t!, I'm grateful for
https://www.gittip.com/bairuidahu/[tips] or
http://of-vim-and-vigor.blogspot.com/[beverages].
vim-help provides several normal-mode maps to ease navigation within help files.
=== Normal Mode Maps Within Help Files
[caption="",cols="1<m,4<"]
|=============================================================================
|o / O |Jump to the next/prior option
|s / S |Jump to the next/prior link
|t / T |Jump to the next/prior anchor
|q |Close the current help window
|<enter> |Follow link under cursor (equivalent to ++ctrl-]++)
|<backspace> |Jump back a tag (equivalent to ++ctrl-t++)
|<leader>j/k |Jump to next/prior quickfix entry (equivalent to +:cnext+ / +:cprev+)
|<leader>q |Disable all vim-help maps (handy for editing vim help files)
|=============================================================================
=== Global Normal Mode Maps
[caption="",cols="1<m,4<"]
|=============================================================================
|<F1> | Cycles through terms from current line for :help
|<shift-F1> | Jump back to prior help location.
|=============================================================================
NOTE: Jump to prior help location only works if you have
https://github.com/dahu/MarkMyWords[MarkMyWords] installed.
=== :TopicToClipboard
The :TopicToClipboard command sets the @* register with a :help
command to jump to the nearest help tag prior to the current cursor
- If that help tag is more than 9 lines away, the help command
- include an offset to the current cursor line. If you want the
cursor line offset even though the help tag is less than 10 lines away,
use :TopicToClipboard! instead.