---
title: "Vim clear last search highlighting"  
description: "Vim clear last search highlighting"  
author: "Revati S Misra"  
published: 2023-04-27  
updated: 2023-04-27  
canonical: https://www.mindstick.com/forum/158034/vim-clear-last-search-highlighting  
category: "html"  
tags: ["javascript", "html", "css"]  
reading_time: 1 minute  

---

# Vim clear last search highlighting

Vim clear last [search](https://www.mindstick.com/articles/65368/best-smo-services-company-in-hyderabad-improve-search-rankings) highlighting

## Replies

### Reply by Aryan Kumar

In Vim, you can clear the last search highlighting by using the **:nohlsearch** command. This command turns off the highlighting of the last search pattern. Here are the steps:

1. Press the colon (**:**) key to enter command mode.
2. Type **nohlsearch** and press Enter.

Alternatively, you can use the shortcut command **:noh** to clear the search highlighting. Here are the steps:

1. Press the colon (**:**) key to enter command mode.
2. Type **noh** and press Enter.

Both commands will clear the search highlighting and remove any highlighting of the last search pattern.


---

Original Source: https://www.mindstick.com/forum/158034/vim-clear-last-search-highlighting

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
