Re: cnoremap + getcmdtype()

2006-10-22 Thread Yakov Lerner
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

Re: cnoremap + getcmdtype()

2006-10-22 Thread Bram Moolenaar
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()

2006-10-22 Thread Yakov Lerner
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 ?