>>:g/^\(.{8}\)\(.*\)\n\(\s{8}\)/s//\1\2\r\1/

>Well,
>:g/^\(.\{8}\)\(.*\)\n\(\s{8}\)/s//\1\2\r\1/
>        ^
>works, but I'd have to run it 12 times if there are twelve blanks  
>after the filled in line.

Hm?  Not sure why you escaped the '{'.  Apparently didn't need to after
the "\s".


>I suppose global picks all the lines, then operates on them.

Ideally, yeh.  Wondered if the op for lines 3-4 would fill in the chars,
then the op would also work on lines 4-5, or if it'd still think the 1st
chars be blank and skip to lines 5-6 as matching the pattern.


>That's a start - thanks!

No worries.

Reply via email to