-
Notifications
You must be signed in to change notification settings - Fork 28
/
learn-vi-106-plugin-searchindex.html
25 lines (22 loc) · 2.77 KB
/
learn-vi-106-plugin-searchindex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="learn-vi.css" />
<title>VIM学习笔记 搜索结果计数器(searchindex)</title>
</head>
<body>
<h1>VIM学习笔记 搜索结果计数器(searchindex)</h1>
<p>更新 2019-11-18:自8.1.1270版本开始,Vim已经内置对搜索结果的计数显示,而不再需要安装额外的插件。</p>
<p>在<a href="http://yyq123.github.io/learn-vim/learn-vi-59-vimrc.html" title="vimrc">vimrc</a>配置文件中增加以下设置,可以在屏幕底部,显示匹配搜索结果的总数,以及当前所处第几个匹配结果。</p>
<p style="text-indent:2em"><code class="inset">set shortmess-=S</code></p>
<p><a href="https://yyq123.github.io/learn-vim/images/set_shortmess_S.png" title="set_shortmess_S"><img src="https://yyq123.github.io/learn-vim/images/set_shortmess_S.png" alt="" width="500" height="42" /></a></p>
<p><a href="https://github.com/google/vim-searchindex" title="vim-searchindex">vim-searchindex</a>插件,可以在屏幕底部的命令行中,显示匹配搜索结果的总数,以及当前所处第几个匹配结果。</p>
<p><a href="https://yyq123.github.io/learn-vim/images/plugin_vim_searchindex.gif" title="vim_searchindex"><img src="https://yyq123.github.io/learn-vim/images/plugin_vim_searchindex_500.gif" alt="plugin_vim_searchindex" width="500" height="131" /></a></p>
<p style="font-weight:bold; border-bottom:1px solid lightgray; border-left:6px solid lightgray; padding:0 0 3px 5px">安装配置</p>
<p>推荐您使用<a href="http://yyq123.github.io/learn-vim/learn-vi-102-plugin-plug.html" title="插件管理器(vim-plug)">vim-plug</a>或<a href="http://yyq123.github.io/learn-vim/learn-vi-101-plugin-vundle.html" title="插件管理器(Vundle)">Vundle</a>等插件管理器,来安装GitHub上的<a href="https://github.com/google/vim-searchindex" title="vim-searchindex">vim-searchindex</a>插件。</p>
<p>使用<code class="inset">:help searchindex</code>命令,可以查看vim-searchindex插件的帮助文件。</p>
<p style="border-top:1px solid lightgray"><span style="float:right">Ver: 2.0 | <a href="mailto:[email protected]">YYQ</a></span><span><<a href="http://yyq123.github.io/learn-vim/learn-vi-101-plugin-vundle.html" title="插件管理器(Vundle)">上一篇</a> |<a title="笔记列表" href="http://yyq123.github.com/learn-vim/learn-vi-00-List.html"> 目录 </a>| <a href="http://yyq123.github.io/learn-vim/learn-vi-102-plugin-plug.html" title="插件管理器(vim-plug)">下一篇</a>></span></p>
</body>
</html>