[deleted]

This is missing a \ before the final +, so unless your identifier is a
word character and a + character, the expression won't match. Try

:g/^component\s\+\w\+/,/^end component/fold

Thanks,
I got it now working for component and for entity.
What is actualy done here, if you don't mind asking?

I also tried it for process in code below but then it doesn't work.
:g/^process\s\+\w\+/,/^end process/fold
Is process a special word?

process (CLK)
begin
 if (CLK'event and CLK='1') then
   if (COUNT >= 5) then
     dtct <= '1';
   else
     dtct <= '0';
   end if;
 end if;
end process;


Thanks again,
Rgds,
Eric

_________________________________________________________________
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581

Reply via email to