Vim global plugin for highlighting matches
Pushed as a personal repo to manage the plugin indepedent of vim config and dotfiles.
- Damien Conway's 'More Instantly Better Vim' OSCON 2013 talk
- hlnext.vim
- Tarball
- Github repo
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>
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.
- Last change: Mon Sep 7 14:26:53 CDT 2020
- Maintainer: Happy-Dude
- Original author: Damian Conway
This file is placed in the public domain.