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

Re: Marking lines for deletion

Expand Messages
  • Dotan Cohen
    ... Thanks, Ben! -- Dotan Cohen http://bido.com http://what-is-what.com -- You received this message from the vim_use maillist. Do not top-post! Type your
    Message 1 of 11 , Apr 29, 2010
    • 0 Attachment
      On 29 April 2010 17:23, Ben Fritz <fritzophrenic@...> wrote:
      > You have lots of answers, all good, but yet one more would be to do
      > exactly as you say:
      >
      > 1. mark "start delete" with md (sets mark d)
      > 2. move to end of text to delete
      > 3. Use the ex command, ":d" to delete the lines, with a range starting
      > at your previous mark like this:
      > :d,.d
      >
      > Or, instead of using an ex command in (3), you could use a motion as
      > suggested before, to delete up to the mark:
      > d'd
      >
      > See :help bookmark for details.
      >

      Thanks, Ben!

      --
      Dotan Cohen

      http://bido.com
      http://what-is-what.com

      --
      You received this message from the "vim_use" 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
    Your message has been successfully submitted and would be delivered to recipients shortly.