HiCurLine


Ⅰ. 插件描述

Highlights the current line

Ⅱ. 基本信息

创建日期:  2004-07-16
使用用户:  1
Github星:  2
插件作者:  Charles Campbell

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This script has a number of maps that intercept various motions and cause the current line to be highlighted.  It is a variant of <HiMtchBrkt.vim> (vimtip#177).

    hcli : initiate HiCurLine operation
    hcls : stop HiCurLine operation

(see vimtip#411 to have HiCurLine automatically begin highlighting)

HiCurLine.vim uses the HL_HiCurLine highlighting group (by default) to specify the highlighting of the current line.  One may change the highlighting group HiCurLine uses with the g:HL_HiCurLine variable.  By default,

let g:HL_HiCurLine= "HL_HiCurLine"

and <HiCurLine.vim> will specify that group internally.  Otherwise, one may change the group used to whatever one wishes:

let g:HL_HiCurLine= "Search"
let g:HL_HiCurLine= "Function"

etc.  The default highlighting is: (background is a setting, see :he 'bg')

background == dark : blue text on cyan background
background == light: cyan text on blue background

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#HICURLINE)

添加新评论