On Tue, Mar 3, 2009 at 7:56 PM, Rob Pike <robp...@gmail.com> wrote: > Do you see utility in counting/movement commands if they are not > combined with regular expressions? > > If you want to make a substitution to the thousandth match of a > regular expression on a line, try > > s1000/[^ ]+/yyy/ > > But to navigate to that place is not as straightforward. Counting only > works for characters and lines.
I meant more along the lines of adding in movement commands, so you could do something like 1000w to move to the 1000th (whitespace-delimited) word. There are also other "abstractions" like blocks, sentences, pages, etc. I'm not extremely adept with Acme and Sam, but it might also be useful to have something like 1000y to copy 1000 lines without having to select and scroll across them all. Of course this is a contrived example, and as I said, I'm a bit ignorant as to whether the editors already have something like this, but that's the thing I was wondering if you found useful, or if you have a better alternative available in Acme and Sam. > > -rob > >