thekaganugur / vim-evanesco

Automatically clears search highlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Put the mapping in ~/.vim/after/plugin and read :h after-directory

  2. Place this line in your vimrc:

autocmd SourceCmd *plugin/evanesco.vim source <afile> | <your_mapping_here>
  1. 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 ~/.vim on *nix or $HOME/_vimfiles on Windows

License

Copyright (c) 2015 Pierre-Guy Douyon. Distributed under the MIT License.

About

Automatically clears search highlight

License:MIT License


Languages

Language:Vim Script 100.0%