* 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.

>     Do anybody has any suggestion? 

Yes:

nnoremap <silent> <tab> :call search('\|\k\+\|')<CR>

> Thanks a lot in advance :)

No problem.

-- 
JR

Reply via email to