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

Re: selecting moved text

Expand Messages
  • Hans Fugal
    Thanks to all who suggested ]p or its derivants, that s very handy. V ] works good for selecting the text over again if I need to do that too. Thanks! Hans :)
    Message 1 of 5 , Aug 13 7:24 AM
    • 0 Attachment
      Thanks to all who suggested ]p or its derivants, that's very handy. V']
      works good for selecting the text over again if I need to do that too.

      Thanks!
      Hans :)

      At 08:55 AM 8/13/2001 -0500, you wrote:

      >Hans,
      >
      >You may also try [p or one of its derivants (]p, [P, ]P) which
      >automatically reindent code when pasted.
      >
      >Leif
      >
      >
      >
      >
      >
      >Hans Fugal <hfugal@...> on 08/10/2001 02:11:22 PM
      >
      >To: vim@...
      >cc:
      >
      >Subject: selecting moved text
      >
      >
      >Often I transplant some code from one place to another by yanking or
      >deleting and putting. Usually I need to adjust the indentation by <'ing
      >or >'ing the pasted segment one or many times. Usually I do the brain-dead
      >thing and reselect, and ocassionaly I use my mind and see how many lines
      >were put in and do V24j (if there were 24 lines inserted). What I would
      >like to do is automatically select the inserted code to execute a command
      >on it (like <). I've tried gv but that selects the segment I yanked, not
      >the one I put.
      >
      >Hans :)
    Your message has been successfully submitted and would be delivered to recipients shortly.