On 10/22/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
Yakov Lerner wrote:
> cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n")
>
> I am intercepring the in the /pattern search.
>
> When search is found, it works. E.g., type /., and you s
Yakov Lerner wrote:
> cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n")
>
> I am intercepring the in the /pattern search.
>
> When search is found, it works. E.g., type /., and you see :redraw
> as a sign that mapping worked.
>
> But
cnoremap (getcmdtype()=='/' ? "\n:redraw" : "\n")
I am intercepring the in the /pattern search.
When search is found, it works. E.g., type /., and you see :redraw
as a sign that mapping worked.
But when search was not found, this mapping does not work.
Why ?