:g/^process\s\+\w\+/,/^end process/fold
Is process a special word?

process (CLK)

process is not a special word - regular expressions do not look like
regular programming languages. I would recommend reading up on vim
regular expressions. the reason why this particular match fails is
because of the parenthesis around the word. Adding (after \s\+ and an
extra ) after the end of the \w\+ should get a match is this
particular case, since the full text is matched, and \w only matches
'word' characters, not punctuation.

Reply via email to