/colorfFul.vim

Highlight chars when searching with f, F, t or T

Primary LanguageVim Script

colorfFul.vim

           _             __   ___      _       _           ~
  ___ ___ | | ___  _ __ / _| / __\   _| |_   _(_)_ __ ___  ~
 / __/ _ \| |/ _ \| '__| |_ / _\| | | | \ \ / / | '_ ` _ \ ~
| (_| (_) | | (_) | |  |  _/ /  | |_| | |\ V /| | | | | | |~
 \___\___/|_|\___/|_|  |_| \/    \__,_|_(_)_/ |_|_| |_| |_|~

            Color me pleasantly surprised!

Usage

By using {f,F,t,T}<char> the <char> will be highlighted with the Search highlight group.

Remove the highlighting by invoking {f,F,t,T}<Esc>.

Configuration

If you don't want to use the Search highlight group for the char, link ColorfFulMarker to some other group.

highlight link ColorfFulMarker Search

The function colorfFul#ClearMatches is also available if you wish to map it to something, e.g.:

nnoremap <leader>n :nohlsearch<BAR>call colorfFul#ClearMatches()<CR>