搜索
以下命令在从第一个匹配的 from
到第一个匹配的 to
的每一行上执行:command
:
:/from/,/to/command " from next 'from' to next 'to'
:?from?,/to/command " from previous 'from' to next 'to'
:?from?,?to?command " from previous 'from' to previous 'to'
See :help search-commands
.