mirror of
https://github.com/jbranchaud/til
synced 2026-01-09 01:58:02 +00:00
Add Highlighting Search Matches as a vim til
This commit is contained in:
@@ -320,6 +320,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Grepping Through The Vim Help Files](vim/grepping-through-the-vim-help-files.md)
|
- [Grepping Through The Vim Help Files](vim/grepping-through-the-vim-help-files.md)
|
||||||
- [Head of File Name](vim/head-of-file-name.md)
|
- [Head of File Name](vim/head-of-file-name.md)
|
||||||
- [Help For Non-Normal Mode Features](vim/help-for-non-normal-mode-features.md)
|
- [Help For Non-Normal Mode Features](vim/help-for-non-normal-mode-features.md)
|
||||||
|
- [Highlighting Search Matches](vim/highlighting-search-matches.md)
|
||||||
- [Horizontal to Vertical and Back Again](vim/horizontal-to-vertical-and-back-again.md)
|
- [Horizontal to Vertical and Back Again](vim/horizontal-to-vertical-and-back-again.md)
|
||||||
- [Incremental Searching](vim/incremental-searching.md)
|
- [Incremental Searching](vim/incremental-searching.md)
|
||||||
- [Increment All The Numbers](vim/increment-all-the-numbers.md)
|
- [Increment All The Numbers](vim/increment-all-the-numbers.md)
|
||||||
|
|||||||
12
vim/highlighting-search-matches.md
Normal file
12
vim/highlighting-search-matches.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Highlighting Search Matches
|
||||||
|
|
||||||
|
Want to see all the places in the buffer that match a search pattern? Turn
|
||||||
|
on `hlsearch` and Vim will highlight all the matches of the previous search.
|
||||||
|
|
||||||
|
Try turning it on with `:set hlsearch` and then search for some pattern
|
||||||
|
using `/`.
|
||||||
|
|
||||||
|
If you no longer want to see all the highlighted matches, turn it off with
|
||||||
|
`:set nohlsearch`.
|
||||||
|
|
||||||
|
See `:h hlsearch` for more details.
|
||||||
Reference in New Issue
Block a user