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

Re: clearing search buffer in vim



on Sun, 11 May 2003 08:13:50PM +0100, Colin Watson insinuated:
> 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.

awesome!  exactly what i was looking for.  thanks!

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^
            get my (*new*) key here:
   http://www.maenad.net/geek/gpg/7ede5499.asc
      (please *remove* old key 11e031f1!)

Attachment: pgplpgW3TQPVG.pgp
Description: PGP signature


Reply to: