ex-easyhl


Ⅰ. 插件描述

Temporary highlight words by , , , .

Ⅱ. 基本信息

创建日期:  2014-03-18
使用用户:  7
Github星:  2
插件作者:  exvim

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Intro

Easyhl is a plugin for temporary highlight words under cursor.

  • Highlight words quickly by different label color.
  • Easily replace highlight words.

Requirements

  • Vim 6.0 or higher.

Installation

This plugin follows the standard runtime path structure, and as such it can
be installed with a variety of plugin managers:

To install using Vundle:

# add this line to your .vimrc file
Bundle 'exvim/ex-easyhl'

To install using Pathogen:

cd ~/.vim/bundle
git clone https://github.com/exvim/ex-easyhl

To install using NeoBundle:

# add this line to your .vimrc file
NeoBundle 'exvim/ex-easyhl'

Download zip file:

cd ~/.vim
unzip ex-easyhl-master.zip
copy all of the files into your ~/.vim directory

Usage

  • Highlight words under cursor

    Move your cursor to the word you want to highlight. Press <Alt-1> or <Alt-2>
    or <Alt-3> or <Alt-4>

  • Highlith visual selection

    By selecting text, and press <Alt-1> or <Alt-2> or <Alt-3> or <Alt-4>, you can
    highlight selected text

  • Cancel highlight words

    Presss <Leader>1 or <Leader>2 or <Leader>3 or <Leader>4
    You also can cancel highlight all by press <Leader>0 or <Atl-0>

  • Replace highlight words

    When you use both highlight Label 1 and 2 for highlighting, you can then press
    <Leader>sub to replace Label 1 words as Label 2

Check :help easyhl for more details.

添加新评论