hlcontext.vim


Ⅰ. 插件描述

based on VIMTIP#548: Using H and L keys as context sensitive pagedown/pageup

Ⅱ. 基本信息

创建日期:  2003-09-08
使用用户:  1
Github星:  2
插件作者:  Robert KellyIV

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is based on VIMTIP #548: Using H and L keys as context sensitive pagedown/pageup by Usman Latif (original tip) and johann-guenter.simon's scrolloff fix/tip

All I have done is stuff the above in a script and add <plug> and (possible) a little clean up. Original tip is included in script file.

In short this makes H and L context sensitive; If H is invoked when cursor is not at the top of the window it will be placed at the top of the window, if it is at the top of the window <pageup> and keep cursor at top of window. Same idea for L (save go down)

If you like you can remap <plug>HLContextPlug_H and <plug>HLContextPlug_L to different keys

Comments and whatnot welcome of course.

添加新评论