Ⅰ. 插件描述
Highlight multiple wordsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'antoinemadec/highlight-groups-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'antoinemadec/highlight-groups-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'antoinemadec/highlight-groups-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/antoinemadec/vim-highlight-groups
Ⅳ. 文档说明
highlight-groups.vim
Allow the user to add words in highlight groups on the fly.
Each group has a different color.
The highlight mechanism used by this plugin is :syn-match, meaning
that it cannot search for words featured in a group.
The goal of this plugin is to allow the user to mark words and increase
readabilty of certain lines of code.
It is especially useful to visualy compare 2 function signatures, or any kind
of other interfaces.

Installation
Use your favorite plugin manager.
Using vim-plug:
Plug 'antoinemadec/vim-highlight-groups'Quick start guide
Here is an example of mapping in your .vimrc:
nnoremap <silent> <F5> :HighlightGroupsAddWord 4 0<CR>
nnoremap <silent> <F6> :HighlightGroupsAddWord 6 0<CR>
nnoremap <silent> <S-F5> :HighlightGroupsClearGroup 4 0<CR>
nnoremap <silent> <S-F6> :HighlightGroupsClearGroup 6 0<CR>
nnoremap <silent> <C-F5> :HighlightGroupsAddWord 4 1<CR>
nnoremap <silent> <C-F6> :HighlightGroupsAddWord 6 1<CR>
nnoremap <silent> <C-S-F5> :HighlightGroupsClearGroup 4 1<CR>
nnoremap <silent> <C-S-F6> :HighlightGroupsClearGroup 6 1<CR>Author
Inspired by Mario Trentini's highlights.vim
License
Copyright (c) Antoine Madec. Distributed under the same terms as Vim itself. See :help license.