Thursday, February 25, 2010

Remove highlight after search in Vi

You can use :noh to disable highlight search temporarily (until your next search). To make turning off the highlights after a search a little quicker and convenient, add something like this to your ~/.vimrc:
Code:

nmap :silent noh

This will map Ctrl+N to :noh.

Taken from here

No comments: