开发者

Vim: Show all lines not matching a pattern

I have a json documen开发者_开发百科t with the following data.

"tag": null

I would like to find all the tags that don't have null.


You can use the :v command:

:v/"tag": null/

Alternatively, you can use a search with a negative look-ahead assertion (you can use set hlsearch to highlight the matches):

/"tag": \(null\)\@!
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜