From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8999 invoked from network); 4 Nov 2004 14:21:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2004 14:21:30 -0000 Received: (qmail 63409 invoked from network); 4 Nov 2004 14:21:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2004 14:21:22 -0000 Received: (qmail 19019 invoked by alias); 4 Nov 2004 14:20:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8170 Received: (qmail 18999 invoked from network); 4 Nov 2004 14:20:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2004 14:20:28 -0000 Received: (qmail 62353 invoked from network); 4 Nov 2004 14:20:28 -0000 Received: from moutng.kundenserver.de (212.227.126.191) by a.mx.sunsite.dk with SMTP; 4 Nov 2004 14:20:27 -0000 Received: from [212.227.126.179] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CPiTJ-0005sr-00; Thu, 04 Nov 2004 15:20:17 +0100 Received: from [217.233.126.155] (helo=buddha.localdomain.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CPiTJ-0003GI-00; Thu, 04 Nov 2004 15:20:17 +0100 Date: Thu, 4 Nov 2004 15:20:10 +0100 From: "Matthias B." To: Nick Croft Cc: DervishD , zsh-users@sunsite.dk Subject: Re: bindkey -v and alt-. for previous cmd arg Message-Id: <20041104152010.61207970@buddha.localdomain.de> In-Reply-To: <20041104114333.GC1476@tandv.ws> References: <20041103124858.GA1476@tandv.ws> <20041103135335.GB22247@DervishD> <20041103194444.GB1476@tandv.ws> <20041103195700.GA23399@DervishD> <20041103200138.GA23419@DervishD> <20041104114333.GC1476@tandv.ws> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:95d11223a40b7ac6df081cef1fe1fef2 X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 On Thu, 4 Nov 2004 22:43:33 +1100 Nick Croft wrote: > * DervishD (zsh@dervishd.net) wrote: > > > > In fact you can do both things at once: > > > > bindkey -M viins '\e.' insert-last-word > > > Yes! And from my recent reading I see that if you bind a key to Esc > using \e it will be mapped to alt as well. No, that's not how it works. It's just that in some terminals (the Linux console for example, at least with some keymaps) Alt-. produces ESC-. But this is by no means standard. In my Xterm, when I press Alt-. I get the (R) registered trademark sign and if I want to bind something to Alt-. I have to bind it to (R) to work in Xterm. The simplest way to find out what to bind against is to execute cat and then press the key combo in question and look at what you see on screen. On the linux console I get this (with Alt-.) PS1# cat ^[. and ^[ happens to be ESC. MSB -- He who SHOUTS is always wrong.