Benji Fisher wrote:

> On Wed, Apr 26, 2006 at 02:00:07AM -0600, Eric Arnold wrote:
> > On 4/26/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes, I have seen it, and can reproduce it. I never thought I could find
> > > a simple test case to illustrate it until now:
> > >
> > >    fun! InsVis()
> > >      exe "normal! \<C-w>wv"
> > 
> > BTW, I don't have to switch windows to get these modes to work.  Simply
> >        normal! V
> > 
> > is enough.
> > 
> > >      return ""
> 
>      OK, I see it (in vim 7.0f).  I tried
> 
> fun! InsVis()
>   normal! v
>   return ""
> endfun
> 
> and then from Insert mode,
> 
> <C-R>=InsVis()<CR>
> 
> 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 think I better prevent this from happening.

-- 
BLACK KNIGHT:  I move for no man.
ARTHUR:        So be it!
    [hah] [parry thrust]
    [ARTHUR chops the BLACK KNIGHT's left arm off]
ARTHUR:        Now stand aside, worthy adversary.
BLACK KNIGHT:  'Tis but a scratch.
                                  The Quest for the Holy Grail (Monty Python)

 /// 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