Vim clear last search highlighting
Vim clear last search highlighting
342
27-Apr-2023
Updated on 27-Apr-2023
Aryan Kumar
27-Apr-2023In 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:
Alternatively, you can use the shortcut command :noh to clear the search highlighting. Here are the steps:
Both commands will clear the search highlighting and remove any highlighting of the last search pattern.