vim 匹配不包含某个字符串的行

\@!  Matches with zero width if the preceding atom does NOT match at the
        current position. /zero-width {not in Vi}
        Like "(?!pattern)" in Perl.
        Example                 matches
        foo\(bar\)\@!           any "foo" not followed by "bar"
        a.\{-}p\@!              "a", "ap", "app", "appp", etc. not immediately
                                followed by a "p"
        if \(\(then\)\@!.\)*$   "if " not followed by "then"

你可能感兴趣的:(vim 匹配不包含某个字符串的行)