diff --git a/README.md b/README.md index 49e72fd..54afd68 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/turning-of-search-highlighting.md b/vim/turning-of-search-highlighting.md new file mode 100644 index 0000000..7f6e41f --- /dev/null +++ b/vim/turning-of-search-highlighting.md @@ -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.