Ⅰ. 插件描述
Automatically clears search highlightⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'pgdouyon/vim-evanesco'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'pgdouyon/vim-evanesco'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'pgdouyon/vim-evanesco'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/pgdouyon/vim-evanesco
Ⅳ. 文档说明
Evanesco
Evanesco is a plugin geared towards automatically clearing Vim's search
highlighting whenever the cursor moves or insert mode is entered. It has a
feature set similar to [vim-oblique][] and I really just built this to scratch
an itch. I ran into a lot of problems with vim-oblique and it seemed simpler to
re-implement the subset of the features that I actually use.
The only reason to use this plugin over vim-oblique is that it's arguably less
of a hack, doesn't have any plugin dependencies, and the code is significantly
smaller.
Features
- Automatically clears search highlight when the cursor is moved
- Draw attention to search under cursor with different highlight group
- Star-search highlights without moving (doesn't yet have an option to easily
disable this feature) - Visual star-search
FAQ
Q. Evanesco conflicts with my favorite mapping for <char>, what should I do?
A. You have three options:
- Put the mapping in
~/.vim/after/pluginand read:h after-directory Place this line in your vimrc:
autocmd SourceCmd *plugin/evanesco.vim source <afile> | <your_mapping_here>- Bug me on the issue tracker with a compelling use case
Installation
[Pathogen][]
cd ~/.vim/bundle && git clone https://github.com/pgdouyon/vim-evanesco.git
[Vim-Plug][]
Plug 'pgdouyon/vim-evanesco'
Manual Install
- Copy all the files into the appropriate directory under
~/.vimon *nix or
$HOME/_vimfileson Windows
- Copy all the files into the appropriate directory under
License
Copyright (c) 2015 Pierre-Guy Douyon. Distributed under the MIT License.