开发者

Vim: Show all lines not matching a pattern

开发者 https://www.devze.com 2023-03-06 02:21 出处:网络
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:

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

精彩评论

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