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

delete every line beginning with "\dn"

Expand Messages
  • danstender
    Hi guys, I need a - delete every line beginning with dn - for vim. Thanks in advance, DS --~--~---------~--~----~------------~-------~--~----~ You received
    Message 1 of 4 , Feb 28, 2009
    • 0 Attachment
      Hi guys,

      I need a - delete every line beginning with "\dn" - for vim.

      Thanks in advance,
      DS

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • John Beckett
      ... See these: http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern http://vim.wikia.com/wiki/Power_of_g ... Since I haven t tested the above, it
      Message 2 of 4 , Feb 28, 2009
      • 0 Attachment
        danstender wrote:
        > I need a - delete every line beginning with "\dn"

        See these:
        http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern
        http://vim.wikia.com/wiki/Power_of_g

        For your case:

        :g/^\\dn/d

        Since I haven't tested the above, it would be a good idea to first do
        the following to list the lines which the above would delete:

        :g/^\\dn

        John


        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_use" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Tim Chase
        ... -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_use maillist. For more information, visit
        Message 3 of 4 , Feb 28, 2009
        • 0 Attachment
          > I need a - delete every line beginning with "\dn" - for vim.

          :g/^\\dn/d


          -tim





          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_use" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        • danstender
          ... Thanks! .... I love Vim! Greetings, DS --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_use maillist. For
          Message 4 of 4 , Mar 1, 2009
          • 0 Attachment
            On Mar 1, 12:36 am, Tim Chase <v...@...> wrote:
            > > I need a - delete every line beginning with "\dn" - for vim.
            >
            > :g/^\\dn/d
            >
            > -tim

            Thanks! .... I love Vim!

            Greetings,
            DS

            --~--~---------~--~----~------------~-------~--~----~
            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.