您的位置:首页 > 其它

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

2016-05-24 08:18 357 查看
\@!  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