由于这个补丁(完全披露:我写的),搜索修饰符^W
在当前文件中启用环绕搜索。在搜索提示下按 CTRL-W 使用它。从联机帮助页:
/pattern
(...)
^W WRAP around the current file. That is, if the search
reaches the end of the current file without finding a
match, the search continues from the first line of the
current file up to the line where it started.
Run Code Online (Sandbox Code Playgroud)
使其成为默认行为的一种方法是通过配置文件中的命令部分(可能位于~/.lesskey
,请参阅man lesskey
有关详细信息):
#command
/ forw-search ^W
? back-search ^W
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1420 次 |
最近记录: |