SHANKAR R-R66203 wrote:

  I want to match all the words in a file which are not keywords.
  In a verilog code, I want to match all the signal names execpt for
the keywords.

 /\w\+ finds all the words.
 But How do I make vim understand, not to pick up any keyword.
You may find LogiPat helpful: http://vim.sourceforge.net/scripts/script.php?script_id=1290

Basically, you can use it to construct regexps which use boolean logic. For example,

:echo LogiPat(' !("word1"|"word2"|"word3"|"word4")')

which shows

  ^\%(\%(word1.*\|.*word2.*\|.*word3.*\|.*word4\)[EMAIL PROTECTED])*$

Regards,
Chip Campbell

Reply via email to