Re: clearing search buffer in vim
On Monday 12 May 2003 02:37, Colin Watson wrote:
> On Mon, May 12, 2003 at 02:13:20AM +0200, Eric wrote:
> > Colin Watson wrote:
> > >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?
>
> Whatever works for you. I find it easier to type something reliable than
> something that might by chance not work and mean I have to think to type
> something else random.
Besides, :noh doesn't mess up your search-history.
And ... you can map it to a single key-stroke.
-- Michael
Reply to: