Bonjour Jean :)
* Jean-Rene David <[EMAIL PROTECTED]> dixit:
> * DervishD [2006.11.27 12:45]:
> > Well, I've done this mapping to be able to jump to the next "tag"
> > in the help file using <TAB>:
> >
> > :nnoremap <silent> <buffer> <TAB> /\|\S\+\|<CR>:nohl<CR>l
> >
> > The problem is that when I hit <TAB>, the "tags" flash a bit,
> > because the search command highlight them and the ":nohl" turns hl
> > off. Moreover, this interferes with my searchs, if any.
>
> Using search() doesn't modify the search register
> so you won't have either of those problems.
Yes, Gary told me so. I thought that "search" affected the search
register (I haven't read the entire documentation yet!).
> > Do anybody has any suggestion?
>
> Yes:
>
> nnoremap <silent> <tab> :call search('\|\k\+\|')<CR>
That works REALLY great!. It's just like the function that Gary
show me but without actually having to define a function.
Merci, Jean :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!