Ⅰ. 插件描述
Temporary highlight words byⅡ. 基本信息
|
Ⅲ. 安装方法
使用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'
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>1or<Leader>2or<Leader>3or<Leader>4
You also can cancel highlight all by press<Leader>0or<Atl-0> - Replace highlight words
When you use both highlight Label 1 and 2 for highlighting, you can then press
<Leader>subto replace Label 1 words as Label 2
Check :help easyhl for more details.