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

Re: clearing search buffer in vim



on Sun, 25 May 2003 08:28:17AM +0100, Colin Watson insinuated:
> On Sun, May 25, 2003 at 12:25:04AM -0400, Nori Heikkinen wrote:
> > on Mon, 12 May 2003 12:35:18AM -0400, Nori Heikkinen insinuated:
> > > on Mon, 12 May 2003 03:00:22AM +0200, Michael Naumann insinuated:
> > > > 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 ...
> 
> ':h :map', page up and you'll see a link describing "<> notation".
> Follow that (or type ':h <>') and you'll see how to type lots of
> special characters into key mappings. In this case:
> 
>   :map <C-h> :noh<CR>
> 
> ... should work, although I haven't tested it.

it does; thanks!

> The vim help system is *fantastic*, possibly one of the most
> comprehensive documentation systems for any piece of free software
> (or indeed software) I've used. It seems to be available in
> /usr/share/doc/vim/html now as well, although I prefer having it
> right there in the editor.

right ... this is one of those things i've never gotten working.
whenever i do a :h anything in vim, i get an

  Sorry, help file "/etc/vim/vim57/doc/help.txt" not found

error.  reinstalling vim does nothing.  /etc/vim/vim57 does not exist.
how can i redirect vim to telling me where the help files are?

thanks again,

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


Reply to: