From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <3aaafc130903031644y1d8ce7a5j107d89159d0b7d2d@mail.gmail.com> References: <13426df10903031413n13e53b8bxef266c2551aa8abd@mail.gmail.com> <509071940903031537le1af6e4t33b6cd97b470b829@mail.gmail.com> <7359f0490903031631o55358b62ic9dd947d83e410b3@mail.gmail.com> <3aaafc130903031644y1d8ce7a5j107d89159d0b7d2d@mail.gmail.com> Date: Wed, 4 Mar 2009 11:56:51 +1100 Message-ID: <7359f0490903031656s18bee4e2s1a04b40490e59f3a@mail.gmail.com> From: Rob Pike To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] command repetition in sam/acme Topicbox-Message-UUID: ae84947e-ead4-11e9-9d60-3106f5b1d025 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. -rob