作者jamuqa (jamuqa)
看板Editor
标题[vim ] 在范围内搜寻
时间Fri Jan 6 12:36:16 2012
假如我希望能在100行到200行内搜寻test字串
请问该怎麽做呢?
我现在都用取代方式做:100,200s/test//gc
但有更方便的方法吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.120.49.163
1F:推 dm4: /\%>100l\%<200ltest 不过好像没有比较方便…XD 01/06 12:55
2F:推 CrBoy:看你搜寻後要干嘛吧?试试看 :100,200g/test/ ? 01/06 21:14
3F:推 Arton0306:原po应该是想像原本的search一样可以highlight用nN来跳 01/06 22:09
5F:推 curist:用NrrwRgn :100,200NarrowRegion<cr> /test 01/08 11:49