From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Stalker To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1305.1236089720.1@maths.tcd.ie> Date: Tue, 3 Mar 2009 14:15:20 +0000 Message-Id: <20090303141520.8D25D8689@okapi.maths.tcd.ie> Subject: Re: [9fans] command repetition in sam/acme Topicbox-Message-UUID: ac40c548-ead4-11e9-9d60-3106f5b1d025 > I just had to edit a file which has very long lines having >1000 > 'words' seperated e.g. with a TAB character. I had to find say 1000th > word on such a line. > > In vim, it's easy. You use '1000W' command and there you are. > Can the same be achieved in sam/acme? The main problem for me is the > repetition --- i.e. how to do sth. known number of times... > > Thanks > Ruda It's horribly inelegant, but I have occasionally done the following: Suppose I want to repeat the command xyz 64 times. I type xyz, snarf it and paste it three times. Then I snarf the lot of them, and paste three times. Then I snarf that and paste three times. Ugly as hell, but it does work. -- John Stalker School of Mathematics Trinity College Dublin tel +353 1 896 1983 fax +353 1 896 2282