On Thu, 27 Apr 2006, Bram Moolenaar wrote:


Gerald Lai wrote:

On Wed, 26 Apr 2006, Benji Fisher wrote:

On Wed, Apr 26, 2006 at 05:17:01PM +0200, Bram Moolenaar wrote:

Benji Fisher wrote:

This mode seems to be similar to Insert mode, but <Esc> takes me to
Visual mode instead of Normal mode.  AFAICT this is undocumented.

This is a really weird mode, being both in Insert mode and having a
Visual selection.

    I agree.

I think I better prevent this from happening.

    No complaints here.  Gerald, I hope you will not miss it! ;)

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.

--
Gerald

Reply via email to