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

Re: delete N following blanked lines

Expand Messages
  • Jürgen Krämer
    Hi, ... Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact
    Message 1 of 12 , May 2, 2008
      Hi,

      epanda wrote:
      >
      > I would like to knon how to delete N blanked lines
      >
      > I have tried this with 8 lines but it deletes only the first blank
      > line
      >
      > g/\(^\n\)\{8}/d

      the :delete command can take a count:

      :g/^\n\{8\}/d 8

      Regards,
      Jürgen

      --
      Sometimes I think the surest sign that intelligent life exists elsewhere
      in the universe is that none of it has tried to contact us. (Calvin)

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