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

Re: Delete commented Lines

Expand Messages
  • Juan M. Medina
    ... Best Regards, JUAN ... From: Christian Schneider To: Vim Mailing List Sent: Wednesday, July 30, 2003 8:29 PM Subject:
    Message 1 of 5 , Jul 31, 2003
      What about:

      :g/^\s*#/d

      Best Regards,

      JUAN

      ----- Original Message -----
      From: "Christian Schneider" <strcat@...>
      To: "Vim Mailing List" <vim@...>
      Sent: Wednesday, July 30, 2003 8:29 PM
      Subject: Delete commented Lines


      Hi,

      I use ':g/^#/d' to delete (with '#') commented lines and it works. But
      now my problem. How can i delete commented lines which starts with a
      space or tabs?
      Well .. i can use "awk '$1 !~ "^#" && $0 != ""{print}' <file>" instead
      but it's the principle of the thing ;)

      cya
      Chris
      --
      BOFH excuse #174:

      Backbone adjustment
    Your message has been successfully submitted and would be delivered to recipients shortly.