Hysen Labs
Open-source project
pgdouyon/vim-evanesco avatar
pgdouyon

vim-evanesco

Automatically clears search highlight

50 stars6 forksVim scriptMIT
01
DEEP OPEN-SOURCE ANALYSIS

vim-evanesco clears your search highlight for you

A small Vim plugin that resets search highlighting on cursor movement or insert mode, written as a simpler replacement for vim-oblique.

02
DEEP OPEN-SOURCE ANALYSIS

The core behavior

Evanesco is a Vim plugin that automatically clears search highlighting whenever the cursor moves or you enter insert mode. The feature list also includes drawing attention to the match under the cursor with a different highlight group, star search highlights without moving, and visual star search. The behavior is narrow and deliberate: get the search highlight out of the way once you are past it, and make the current match easier to spot while it is still shown.

03
DEEP OPEN-SOURCE ANALYSIS

Why not vim-oblique

The README is candid about the alternative. The only reason to use this over vim-oblique is that it is arguably less of a hack, has no plugin dependencies, and the code is significantly smaller. The author built it to scratch an itch after running into problems with vim-oblique, reimplementing the subset of features actually used. That is a personal project origin story, and the justification is honest rather than competitive.

04
DEEP OPEN-SOURCE ANALYSIS

Installing it

Installation covers the usual routes. With Pathogen you clone the repository into the bundle directory. With Vim Plug you add a single Plug declaration. For a manual install you copy the files into the appropriate directory under the vim home on Unix or the vimfiles directory on Windows. None of the paths are exotic, and the plugin carries no external dependencies to juggle.

05
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The plugin clears search highlighting on cursor movement and insert mode entry, highlights the match under the cursor differently, and keeps star search behavior. It exists because the author wanted a simpler alternative to vim-oblique.

06
DEEP OPEN-SOURCE ANALYSIS

Official sources

07
Community notes

Community notes