mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 16:18:01 +00:00
16 lines
433 B
Markdown
16 lines
433 B
Markdown
# 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.
|