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

68488Re: hiding lines

Expand Messages
  • Gary Johnson
    May 1, 2006
    • 0 Attachment
      On 2006-05-01, cga2000 <cga2000@...> wrote:
      > Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or thereabouts: <iler.ml@...> [2006-05-01 17:25]:
      > > On 5/1/06, Bill Pursell <bill.pursell@...> wrote:
      > > >
      > > >Is it possible to completely hide lines? Something stronger than merely
      > > >folding. In particular, I'd like to be able to display the buffer with
      > > >all lines containing "assert" hidden, or to hide lines between and
      > > >including #ifdef/#endif pairs. Can that be done?
      > >
      > > Piping the buffer text into temp. buffer through some sort
      > > of grep -v.
      > >
      >
      > could you be a little more specific - or provide a short example.. been
      > looking for something like this myself for some time..

      I can't think of anything 'grep -v <pattern>' can do in this
      situation that 'v/<patter>/d' can't, so here's one way to do this:

      gg"aYG
      :new
      "ap
      :1d
      :v/assert/d

      HTH,
      Gary

      --
      Gary Johnson | Agilent Technologies
      garyjohn@... | Wireless Division
      | Spokane, Washington, USA
    • Show all 26 messages in this topic