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

73275Re: block mode paste feature

Expand Messages
  • Bram Moolenaar
    Sep 19, 2013
    • 0 Attachment
      Christian Brabandt wrote:

      > >> On Do, 12 Sep 2013, shawn wilson wrote:
      > >>
      > >> > Can vim be made to DWIM here? I did a quick search and found I'm not
      > >> the
      > >> > only one who has run into this. For example:
      > >> > http://briancarper.net/blog/341/
      > >> >
      > >> > Just to re-explain what I want: when you visually select a block, you
      > >> can
      > >> > change or insert and it will change the block but when you paste a
      > >> single
      > >> > line buffer (I can see how this might get not be so simple for pasting
      > >> > multiple lines) it only changes the first line. The "fix" of using C+R
      > >> in
      > >> > insert mode as was mentioned works, but the behavior isn't what I
      > >> expect.
      > >>
      > >> Try the attached patch.
      > >
      > > I'm missing something here: How do you paste?
      >
      > using 'p' or 'P'. It will only be repeated, if the pasted part
      > is a characterwise and a single line.

      Aha, I usually call that a put, not a paste.

      > > These block operations have had bugs in the past. If we make changes in
      > > this code it would be a good idea to at least have some basic tests.
      >
      > I can add a test.

      Thanks.

      --
      Google is kind of like Dr. Who's Tardis; it's weirder on the
      inside than on the outside...

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 6 messages in this topic