From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 3 Mar 2009 08:09:28 -0800 Message-ID: Subject: Re: [9fans] command repetition in sam/acme From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ac7a16cc-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... You can double-click at the beginning of the line and then execute s//\n/g .-0+1000 u that will show you what the 1000th word is, and then you can go back to it after the undo. It's not ideal, but you asked. Russ