happy-dude / hlnext.vim

Vim global plugin for highlighting matches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hlnext.vim

Vim global plugin for highlighting matches

Pushed as a personal repo to manage the plugin indepedent of vim config and dotfiles.

References

Description

After highlighting search results, shows the search result that is found at the cursor in a different color. Using N or n to jump forward or backward will update the result at the cursor to be newly highlighted.

Highlighting the next search result is done via the HLNext() function. In order to remove search highlighting it is recommended to use a mapping similar to the following:

nmap <silent> <BS> :call HLNextOff() <BAR> :nohlsearch<CR>

If using documap.vim:

nmap <silent> <BS> [Cancel highlighting] :call HLNextOff() <BAR> :nohlsearch<CR>

If using documap.vim and either visualguide.vim or visualsmartia.vim

nmap <silent> <BS> [Cancel highlighting] :call HLNextOff() <BAR> :nohlsearch <BAR> :call VG_Show_CursorColumn('off')<CR>

Alternatives

vim-searchlight, vim-searchhi, and vim-searchant are feature rich and well-maintained.

I have used Damain Conway's hlnext the longest and am most familiar with it's highlighting style, and thus have stuck with it.

Meta

License

This file is placed in the public domain.

About

Vim global plugin for highlighting matches


Languages

Language:Vim Script 100.0%