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

68500Re: hiding lines

Expand Messages
  • Yakov Lerner
    May 1, 2006
    • 0 Attachment
      On 5/2/06, Suresh Govindachar <sgovindachar@...> wrote:
      >
      > Yakov Lerner wondered:
      >
      > > But how do you remove #ifdef blocks? I mentioned piping because
      > > there is ready utility, 'unifdef', that removes some or all of
      > > #if blocks.
      >
      > Isn't there a way to do a multi-line substitution:
      >
      > :%s/^\s*#ifdef .*^\s*#endif//
      >
      > where the *s are multi-line and non-greedy, or maybe I should
      > say the *s are non-greedy and the . is multi-line? (I haven't
      > actually tried, but I am confident I can do it in perl.)

      What if #if/#endif blocks are nested ?

      Yakov
    • Show all 26 messages in this topic