1

当您在文件中进行搜索时,我试图找到一些计算响应数量的东西(using '/'),这样您就知道您正在查看3/10结果。

外面有这样的东西吗?也许是与航空公司的整合?

4

2 回答 2

2
:vim foo %

这样做:

(1 of 32): <the line containing the first match>

你也可以这样做:

:%s/foo//n

这将输出如下内容:

32 matches on 32 lines

请注意,第一个仅在保存的缓冲区上可靠地工作。

于 2016-06-21T09:41:33.927 回答
1

试试这个插件https://github.com/henrik/vim-indexed-search
它在 Vim 搜索中显示“Match 123 of 456 /search term/”

于 2016-06-21T03:40:44.990 回答