1
0
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:
jbranchaud
2016-04-23 10:41:12 -05:00
parent 18cae25235
commit ac33829242
2 changed files with 17 additions and 1 deletions

View 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.