[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: clearing search buffer in vim



Colin Watson wrote:

a friend just asked me how, after searching for something in vim, to
clear the highlighting [...]


I unset the 'hlsearch' option, so I don't get the highlighting in the
first place. If you do have hlsearch set, though, :noh (or :nohlsearch)
will clear it until the next search.

Seems much more easy to hit '/xxx' than ':noh', isn't it?

Cheers
Eric





Reply to: