4

标题几乎透露了要点。是否有设置可以在使用时n停止N搜索并在到达文件底部时停止搜索?

4

1 回答 1

7

关闭搜索换行:

set nowrapscan

它会给出一个错误并在缓冲区的顶部和底部停止:

E384: search hit TOP without match for: set
E385: search hit BOTTOM without match for: set

:h wrapscan:(默认开启)

Searches wrap around the end of the file.  Also applies to ]s and
[s, searching for spelling mistakes.
于 2013-05-29T07:16:10.380 回答