From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13355 invoked from network); 17 Jul 2000 17:34:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Jul 2000 17:34:18 -0000 Received: (qmail 22112 invoked by alias); 17 Jul 2000 17:33:56 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3294 Received: (qmail 22105 invoked from network); 17 Jul 2000 17:33:55 -0000 Date: Mon, 17 Jul 2000 18:33:27 +0100 From: Peter Stephenson Subject: Re: wanted: viins-mode and digit argument with a,i,A and such In-reply-to: "Your message of Mon, 17 Jul 2000 17:04:01 -0000." <1000717170401.ZM22548@candle.brasslantern.com> To: zsh-users@sunsite.auc.dk (Zsh users list) Message-id: <0FXU00GO1RFRZ5@la-la.cambridgesiliconradio.com> Content-transfer-encoding: 7BIT > } > when i use bindkey -e, i can insert one character 10 times with > } > ESC 10 . > } > > } > With vi one normally uses something like 10i. > } > This is not possible with ZSH ( bindkey -v set ). > } > } If you are using 3.1, try a widget like [...] > > I generally agree with the new philosophy of not adding things as builtins > that can be done as widgets, but this is so unbelievably trivial and so > completely general that I have no idea why we shouldn't do it: This isn't quite how vi handles it, however. It would wait till you hit escape, then insert everything you typed that many times. That would need more work. Plus in zsh there are other ways of exiting insert mode than returning to command mode --- what should happen on `return'? -- Peter Stephenson Cambridge Silicon Radio, Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070