mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 17:18:02 +00:00
Add Turning Off Search Highlighting as a vim til
This commit is contained in:
15
vim/turning-of-search-highlighting.md
Normal file
15
vim/turning-of-search-highlighting.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Turning Off Search Highlighting
|
||||
|
||||
After performing a search for a common word, you end up with that word
|
||||
highlighted all over the place. To turn it off, I generally use the `set`
|
||||
command with `no` prepended to the `hlsearch` option -- as is convention in
|
||||
Vim.
|
||||
|
||||
It turns out though, that `nohlsearch` is a command in its own right. I can
|
||||
save a few characters by invoking:
|
||||
|
||||
```
|
||||
:nohlsearch
|
||||
```
|
||||
|
||||
See `:h nohlsearch` for more details.
|
||||
Reference in New Issue
Block a user