From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6592 invoked from network); 2 Sep 2006 18:23:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Sep 2006 18:23:12 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 99383 invoked from network); 2 Sep 2006 18:23:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Sep 2006 18:23:06 -0000 Received: (qmail 9759 invoked by alias); 2 Sep 2006 18:22:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10659 Received: (qmail 9750 invoked from network); 2 Sep 2006 18:22:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Sep 2006 18:22:55 -0000 Received: (qmail 97867 invoked from network); 2 Sep 2006 18:22:55 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 2 Sep 2006 18:22:19 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J4Z0055C9O8RUJ6@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 02 Sep 2006 13:21:45 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k82ILhPO017882 for ; Sat, 02 Sep 2006 11:21:44 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k82ILh84017881 for zsh-users@sunsite.dk; Sat, 02 Sep 2006 11:21:43 -0700 Date: Sat, 02 Sep 2006 11:21:43 -0700 From: Bart Schaefer Subject: Re: The opposite of bindkey -m In-reply-to: <20060902.174651.74747463.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Message-id: <060902112143.ZM17880@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060902.174651.74747463.Meino.Cramer@gmx.de> Comments: In reply to Meino Christian Cramer "The opposite of bindkey -m" (Sep 2, 5:46pm) On Sep 2, 5:46pm, Meino Christian Cramer wrote: > > Is there any way to "disable" bindkey -m without restarting zsh ? I think you're confused about something here. Vim, zsh, and mc are all just programs getting their input from a terminal or terminal emulator. The key bindings in zsh do not affect what is sent by the terminal to any of the other programs; they only affect how zsh interprets the input that is sent to it. When zsh runs an external program like vim or mc, it steps completely aside, so those programs are getting input directly from the terminal, not "mediated" through zsh's key bindings. Thus "bindkey -m" is not what causes the terminal to send what you're calling "binary" to zsh or to vim, it's only telling zsh what to do when it receives binary. Control of what is sent is somewhere else, probably in a terminfo definition. In other words, you must have changed something other than just bindkey, and you may have changed it somewhere external to zsh (such as in your terminal emulator's configuration file). If it's the terminfo, the setting of the TERM variable can change to an alternate definition, and you might "fix" mc by something like alias mc='TERM=vt100 mc' (choose a more appropriate value for TERM than vt100, that's just an example). If instead it's the emulator's configuration, the TERM setting might also help if you can find one that matches what the emulator is sending -- but if that doesn't work, you may not be able to get both vim and mc to receive the input they expect. Either way the solution won't have anything to do with zsh key bindings.