From: Gavin Sinclair Date: 2004-08-17T12:47:24+09:00 Subject: Re: About ruvi On Tuesday, August 17, 2004, 1:26:18 PM, Hal wrote: > Gavin Sinclair wrote: >> _MY_ favourite is this: >> >> :g/abc/normal 3WdWA def >> >> (For exvery line that contains 'abc', delete the fourth word and >> append ' def' to the line.) >> >> Another cool one is ^A/^X (increment/decrement the next number on the >> line -- great in macros!) > I have *never* heard of ^A and ^X, that is fascinating. I once had to turn 1Kb of test data into 10Mb of test data. It was copy/paste, except a unique ID was required. Enter a vim macro with ^A in it, tell it to run the macro 10000 times, make a cup of tea, and voila - 10Mb of test data. ::licks lips:: Gavin