On 5/2/06, Suresh Govindachar <[EMAIL PROTECTED]> 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

Reply via email to