Loading ...
Sorry, an error occurred while loading the content.

Re[2]: mapping F3 to switch from Insert mode to Insert Visual Mode

Expand Messages
  • Plotnikov Andrey
    Hello Benji, Saturday, January 27, 2001, 3:33:25 AM, you wrote: BF Received: from krw.ru (oak.dmz.krsk.mps [10.88.200.2]) BF by inferno.krsk.mps
    Message 1 of 7 , Jan 26, 2001
    • 0 Attachment
      Hello Benji,

      Saturday, January 27, 2001, 3:33:25 AM, you wrote:

      BF> Received: from krw.ru (oak.dmz.krsk.mps [10.88.200.2])
      BF> by inferno.krsk.mps (8.8.8+Sun/8.8.8) with SMTP id XAA15999
      BF> for <apl@...>; Fri, 26 Jan 2001 23:32:31 +0300 (MSK)
      BF> Received: from monet.bc.edu (monet.bc.edu [136.167.2.208])
      BF> by krw.ru (8.9.3/8.9.3) with SMTP id XAA22943
      BF> for <apl@...>; Fri, 26 Jan 2001 23:33:29 +0300 (MSK)
      BF> Received: from BC.edu (x1-6-00-50-e4-e6-82-48.bc.edu [136.167.171.29])
      BF> by monet.bc.edu (8.8.7/8.8.7) with ESMTP id PAA190928;
      BF> Fri, 26 Jan 2001 15:33:26 -0500
      BF> Message-ID: <3A71DF14.C95017C2@...>
      BF> Date: Fri, 26 Jan 2001 15:33:25 -0500
      BF> From: Benji Fisher <fisherbb@...>
      BF> Reply-To: benji@...
      BF> Organization: Boston College
      BF> X-Mailer: Mozilla 4.7 (Macintosh; U; PPC)
      BF> X-Accept-Language: en
      BF> MIME-Version: 1.0
      BF> To: apl <apl@...>
      BF> CC: vim@..., Bram Moolenaar <Bram@...>
      BF> Subject: Re: mapping F3 to switch from Insert mode to Insert Visual Mode
      BF> References: <3A717E69.E10B85FF@...> <20010126150741.D3330@...>
      BF> <3A71970F.BFCF80F4@...> <3A71A224.2555B7B8@...> <1235303165.20010127002232@...>
      BF> Content-Type: text/plain; charset=us-ascii
      BF> Content-Transfer-Encoding: 7bit
      BF> Content-Length: 1214
      BF> Status:

      BF> Plotnikov Andrey wrote:
      >>
      BF> [snip]
      >> At the moment I have the follows:
      >> :imap <F3> <Esc>v
      >> :vmap <F3> yi
      >> :vmap <F4> di
      >> :imap <F5> <Esc>Pa
      >>
      >> So: F3 - begin select (in insert mode)
      >> F3 - copy (in visual mode)
      >> F4 - cut
      >> F5 - paste (in insert mode)
      >> But I want to use standart d andy y commands for cut and copy.
      >> And some more. The VIM 5.6 Reference Guide says: "Insert Visual mode -
      >> Entered when starting a Visual selection from Insert mode. When the
      >> Visual selection ends, Vim returns to Insert mode."
      >> Therefore I decide that it is suitable for my problem.

      BF> You are right. The docs (:help vim-modes) mention Insert Visual
      BF> mode, but do not mention how to get to this mode. I can figure out a
      BF> few ways:

      BF> 1. (Probably what you want) Go to Insert Normal mode first, with <C-O>.
      BF> This can be mapped. Then enter Visual mode with v or V or <C-V>
      BF> (depending on what sort of Visual mode you want. So maybe

      BF> :imap <F3> <C-O>v

      BF> will do what you want.

      BF> 2. Use the mouse. Depending on your mouse options, you can enter
      BF> Insert Visual mode by dragging the mouse.

      BF> Bram: I think the docs should be a little clearer on this point.

      BF> HTH --Benji Fisher

      Yes, it is what I mean. Thank you.

      --
      Best regards,
      Plotnikov mailto:a_pl@...
    Your message has been successfully submitted and would be delivered to recipients shortly.