68500Re: hiding lines
- May 1, 2006On 5/2/06, Suresh Govindachar <sgovindachar@...> wrote:
>What if #if/#endif blocks are nested ?
> 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.)
- << Previous post in topic Next post in topic >>