Gerald Lai wrote:

> >> Nah. Good riddance :) It will actually fix a bug in one of my scripts.
> >>
> >> Bram, could you make Vim do
> >>
> >>    -- (insert) VISUAL --
> >>
> >> instead when it now does
> >>
> >>    -- INSERT VISUAL --
> >
> > With the weird mode prevented, this should never appear now.  Perhaps I
> > should offer a reward if you are still able to get it somehow!
> 
> So what happens when
> 
>    i<C-r>=Test()<CR>
> 
> is done for
> 
>    fun! Test()
>      normal! v
>      return ""
>    endf
> 
> ?
> 
> Does it go into -- (insert) VISUAL -- mode? It should.

No, this is not a legal way to change mode.  The CTRL-R =  command is
there to get text to be inserted, not to change mode.  You can use
CTRL-O v for that.

-- 
It's not hard to meet expenses, they're everywhere.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to