On Thu, 25 May 2006, Nikolaos A. Patsopoulos apparently
wrote:
The replacement didn't occur to the whole file.
You must have forgotten the '%'.
hth,
Alan Isaac
On Thu, 25 May 2006, Nikolaos A. Patsopoulos apparently wrote:
No, I used %.
Got them same problem with Tim's code
Something is not right ...
Try using
:g/./s/
instead of
:%s/
and see what happens.
hth,
Alan Isaac
On Thu, 25 May 2006, Nikolaos A. Patsopoulos apparently wrote:
00 must become 0 0
The original replacement I sent had these spaces in it:
:g/./s/^\(\d\+\)\s\+\([01]\)\s\+\([01]\)\s\+\([01]\)\s\+\([01]\)\s*/#\1\r\2
\3\r\4 \5
Look after \2 and after \4
hth,
Alan Isaac