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

Re: clearing search buffer in vim



On Sun, 11 May 2003, Jamie Lawrence wrote:

> On Sun, 11 May 2003, 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?
> 
> :silent noh
> 
> I have this in my .vimrc:
> 
> nmap <silent> <C-N> :silent noh<CR>
> 
> HTH,
> 
> -j
> 
> 
> --
> Jamie Lawrence                                        jal@jal.org
> Everyone knows what damage is done to the soul by bad motion pictures.
>    - Pope Pius XI
> 





-- 
Jamie Lawrence                                        jal@jal.org




Reply to: