On Tue, 25 Apr 2006, Benji Fisher wrote:

On Sat, Apr 22, 2006 at 11:11:33AM -0700, Gerald Lai wrote:
From Normal mode, typing "i" will elicit

  -- INSERT --

Then typing "<C-o>v" will elicit

  -- (insert) VISUAL --

My question is, what keystroke will elicit

  -- INSERT VISUAL --

?

    AFAIK there is no such mode.  Have you seen it?  Or do you think
there should be some such mode?

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"
    return ""
  endfun

Split open 2 different files. In one file window, from Normal mode, type

  i<C-r>=InsVis()<CR>

The "v" can be replaced with "V" to produce "-- INSERT VISUAL LINE --",
etc.

Eric, this is not the same as typing

  <C-o><C-v>

that produces

  -- (insert) VISUAL BLOCK --

The -- INSERT VISUAL -- mode is quite a wacky mode. I think it's a
corner case that could possibly happen.. something that only developers
would be aware of.

--
Gerald

Reply via email to