o1792 wrote:
Hi vimmers,When searching through text files using regex, I amtrying unsuccessfully to negated a complicated patternwithout success.
...snip... May I suggest that you look into LogiPat, http://vim.sourceforge.net/scripts/script.php?script_id=1290 which is useful for searching with boolean-logic patterns. In particular, with it you can try :echo LogiPat('"!ion"')The result is a regex pattern for matching any lines that don't contain "ion".
Regards, Chip Campbell