mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Turning Off Search Highlighting as a vim til
This commit is contained in:
@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
|
||||
warrant a full blog post. These are mostly things I learn by pairing with
|
||||
smart people at [Hashrocket](http://hashrocket.com/).
|
||||
|
||||
_400 TILs and counting..._
|
||||
_401 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -472,6 +472,7 @@ _400 TILs and counting..._
|
||||
- [The Vim Info File](vim/the-vim-info-file.md)
|
||||
- [Toggle Absolute And Relative Paths In BufExplorer](vim/toggle-absolute-and-relative-paths-in-bufexplorer.md)
|
||||
- [Toggling Syntax Highlighting](vim/toggling-syntax-highlighting.md)
|
||||
- [Turning Off Search Highlighting](vim/turning-off-search-highlighting.md)
|
||||
- [Unloading A Buffer](vim/unloading-a-buffer.md)
|
||||
- [Use Active Window With BufExplorer](vim/use-active-window-with-bufexplorer.md)
|
||||
- [Verbose Commits With Fugitive](vim/verbose-commits-with-fugitive.md)
|
||||
|
||||
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