On 03/09/21 11:48 Marc Chantreux wrote: > hello people, > > Does anyone know how to get this done even faster: > > ma > } > :'a,ms/foo/bar
.,/^$/s/foo/bar > even if it's short, I really would like to have > something which work the way I abuse the ! command in vim: > > !} > > actually write a range on command line like > > :.,.6! One can always :set num and then use absolut line numbers. Feels kinda cheap though. > so I just have to replace the ! by s/foo/bar and i get the job done. > > anything i missed in the doc to be that concise with vi? Address ranges are covered in ed(1). There is also a rather nice tutorial, can't find it right now. tilo > regards. > marc >

