Ⅰ. 插件描述
Vim plugin for improved search highlightingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'timakro/searchant-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'timakro/searchant-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'timakro/searchant-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/timakro/vim-searchant
Ⅳ. 文档说明
# searchant.vim
Vim plugin for improved search highlighting
Overview
When it comes to searching Vim is one of the editors which lacks the feature
of highlighting the current search result. Searchant wraps the hacky way to
achieve this in Vim into a plugin with a clean interface. Additionally it
provides a key mapping to stop the search highlighting.
View the documentation in Vim with :help searchant or on the web.

Requirements
- Vim 7.0+
Installation
It is recommended to install this plugin using a plugin manager like
pathogen.vim,
Vundle.vim or
vim-plug.
Alternatively you can just drop the plugin and doc folders into your~/.vim directory. Don't forget to run :helptags ~/.vim/doc to generate the
help tags after a manual installation.
If you are using incsearch.vim
and you'd like vim-searchant to play-nicely, you can add the following snippet
to hide the searchant highlight:
" Disable Searchant highlight when incsearch.vim highlights also disable
autocmd CursorMoved * call SearchantStop()
function SearchantStop()
:execute "normal \<Plug>SearchantStop"
endfunctionThis assumes that you have let g:incsearch#auto_nohlsearch = 1 in your config.
License
Copyright (C) 2017 Tim Schumacher
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent per‐mitted by law.