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

68499RE: hiding lines

Expand Messages
  • Suresh Govindachar
    May 1, 2006
    • 0 Attachment
      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.)

      --Suresh
    • Show all 26 messages in this topic