Re: clearing search buffer in vim
On Sun, May 11, 2003 at 02:20:23PM -0400, Nori Heikkinen wrote:
> a friend just asked me how, after searching for something in vim, to
> clear the highlighting. i told him i usually just hit / and then
> smash my fingers around on the home row for a bit[1], the result of
> which inevitably doesn't match anything. is there a Better Way to do
> this? how do most people clear the search buffer?
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.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: