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

Re: Automatic reference to a block just inserted

Expand Messages
  • Andy Wokula
    ... There are special marks for the purpose ... -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_use
    Message 1 of 3 , Sep 6, 2008
    • 0 Attachment
      McA schrieb:
      > Hi all,
      >
      > I couldn't find an answer to my question in the net:
      > How can I refer simply to a block of lines which was just inserted
      > by a push command.
      > E.g. I copy some lines, push them somewhere and then
      > I want to indent exactly the last inserted rowsi without
      > selecting them once again.. (Yes, I know that there is a
      > special push-command for indenting correctly)
      >
      > Thank you in advance
      > Andreas

      There are special marks for the purpose
      :h '[
      :h ']

      Indent the range of the last change (which includes a put command):
      :normal! '[=']

      --
      Andy


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.