Vim search results highlighting hide

How to Hide Search Highlighting in Vim

How to hide search result highlighting in Vim. Also explains how to remove only specific text highlighting.

Shou Arisaka
1 min read
Oct 1, 2025

How to Hide Search Highlighting in Vim

This article introduces how to hide search result highlighting in Vim. You can easily remove highlighting with the following steps.

![Image](/images/blog/sharex_screenshot_46425e9f-29d5-436a-9354-47079ff5_a06b39fc.png)

Command to Hide Search Result Highlighting

To temporarily hide search result highlighting, use the following command:

:noh

When you execute this command, the highlighting of current search results will be hidden.

How to Remove Highlighting of Specific Text

If you want to remove only the highlighting of specific text, use the following command:

:let @/="some text"

This command allows you to clear the highlighting of specific text.

For more detailed information, please refer to the following link: search - How can I clear word highlighting in the current document (e.g. such as after searching for a word)? - Vi and Vim Stack Exchange


By using these methods to easily manage search result highlighting in Vim, you can work more comfortably.

Share this article

Shou Arisaka Oct 1, 2025

๐Ÿ”— Copy Links