加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

search – 显示Vim中的匹配数

发布时间:2020-12-15 09:23:12 所属栏目:安全 来源:网络整理
导读:当您执行搜索时,Google Chrome中有一个很好的功能。它会告诉您您要搜索的关键字的匹配数。然而,在Vim我没有看到这样的功能。有些人建议使用%s / pattern // gn或类似的: http://vim.wikia.com/wiki/Count_number_of_matches_of_a_pattern Unable to coun
当您执行搜索时,Google Chrome中有一个很好的功能。它会告诉您您要搜索的关键字的匹配数。然而,在Vim我没有看到这样的功能。有些人建议使用%s / pattern // gn或类似的:

http://vim.wikia.com/wiki/Count_number_of_matches_of_a_pattern
Unable to count the number of matches in Vim

但这是相当长的真的!当我按’*’,’%’或使用’/’和’?’搜索时,我正在寻找计数。

任何想法?

插件 index search。

最新版本here。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读