【发布时间】:2014-10-13 12:23:14
【问题描述】:
我想要一个命令在同一行上查找从foo 到bar 的文本。例如:
hello foo some text here bar
goodbye foo some other text here bar
对于每一行,我想找到以foo 开头并以bar 结尾的文本。
在 Vim 中类似于 /foo.*bar
【问题讨论】:
我想要一个命令在同一行上查找从foo 到bar 的文本。例如:
hello foo some text here bar
goodbye foo some other text here bar
对于每一行,我想找到以foo 开头并以bar 结尾的文本。
在 Vim 中类似于 /foo.*bar
【问题讨论】:
【讨论】:
将光标放在foo 上,键入C-s 以启动i-search-forward,然后按C-w 4 次以扩展搜索词以覆盖接下来的4 个单词,或者点击 M-s C-e 以在搜索词中包含该行的其余部分。
【讨论】: