在Vim中,有一个非常好的功能可以查找/替换每行中的第一个匹配项。这实际上是afaik的默认行为。 如何在崇高的文本中获得相同的行为?崇高文本在每行中首先选择
我需要能够标记/找到FIRST(和第一个!)字符,例如, '=',以便我可以轻松地标记/复制/剪切特定角色之前和之后的内容。请注意,每行中可能会有许多这种特定的字符。
具体的例子:
我有Java属性的形式的长列表:
my.property.link1=<a href="asdfs">Link 1</a>
my.property.link22=<a href="asdfs">Link 22</a>
my.property.link333=<a href="asdfs">Link 333</a>
my.property.link4444=<a href="asdfs">Link 4444</a>
我要标记的第一“=”中的每一行,以能够选择的所有前面的文本(与“=”之前的文本量无关)来剪切或复制文本。这种行动的糊结果将是:
my.property.link1
my.property.link22
my.property.link333
my.property.link4444
棒极了!这工作正如我想要的那样! :) – Hoof