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

Re: clearing search buffer in vim



picking up on an old thread ... 

on Mon, 12 May 2003 12:35:18AM -0400, Nori Heikkinen insinuated:
> on Mon, 12 May 2003 03:00:22AM +0200, Michael Naumann insinuated:
> > 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.
> 
> oo, even better! :)

recapping: i wanted to map the :noh command in vim to a single
keystroke.  so i mapped it to 'H'.  i just remembered today that
that's the "go to the top of the screen" letter.  how can i map it to
ctrl+h intsead?  i can't find out how to do it in the manpages /
/usr/share/doc pages ...

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: pgpG6a5hRMEEj.pgp
Description: PGP signature


Reply to: