From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29471 invoked from network); 3 Nov 2008 17:45:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Nov 2008 17:45:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 34374 invoked from network); 3 Nov 2008 17:45:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Nov 2008 17:45:41 -0000 Received: (qmail 19321 invoked by alias); 3 Nov 2008 17:45:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25999 Received: (qmail 19304 invoked from network); 3 Nov 2008 17:45:35 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 3 Nov 2008 17:45:35 -0000 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by bifrost.dotsrc.org (Postfix) with ESMTP id 8018880524C0 for ; Mon, 3 Nov 2008 18:45:29 +0100 (CET) Received: by ug-out-1314.google.com with SMTP id 36so1836750ugg.18 for ; Mon, 03 Nov 2008 09:45:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=jEbj0lHE/HjTgyAYAaK6ahcNhZ+C/7iPGBOWnZOICFw=; b=tM0sVpF3zOEuAc6PpCkgFFbfFCO5pLmxqanRuDqSq4mYGsqnqYj5lVdl1IwFQDcn1g EhFVrVVwg8djor7sZSy77uvBlrRtXctOe0f97ixH8PlY397JX5bJVTsU0SqRbhmpcdc4 GX/ygFGEwfPdV2tA/dYrmiG4UMoIXFFCP0Ljk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=IUJriXvGV6FzFjiIXOwIyJ4H6npfNSaG7WF1icgC4+EbAPWj5aZn52dlriu8i4b4Yi /YOpPqTEXc2weCIMM7E2rmxYtGDXa0+EA36sQ5iXjBMA3K5EWMqbSdlDx+r/iFtPfu1n HAG3pFXndXpJTdGNwJFt+OiTuOOBMunj7lBG4= Received: by 10.86.84.5 with SMTP id h5mr377660fgb.10.1225734328926; Mon, 03 Nov 2008 09:45:28 -0800 (PST) Received: from ?192.168.1.11? (AMontsouris-159-1-10-231.w83-202.abo.wanadoo.fr [83.202.165.231]) by mx.google.com with ESMTPS id l12sm9004993fgb.6.2008.11.03.09.45.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Nov 2008 09:45:27 -0800 (PST) Message-ID: <490F38A8.2070505@gmail.com> Date: Mon, 03 Nov 2008 18:45:12 +0100 From: Matthieu Louvel de Monceaux User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) MIME-Version: 1.0 To: Mikael Magnusson CC: Stephane Chazelas , zsh-workers@sunsite.dk Subject: Re: Weird Vi-mode behavior References: <490EED78.8010802@gmail.com> <200811031237.mA3Cb2VS013961@news01.csr.com> <20081103125609.GA4855@sc.homeunix.net> <490F3638.4000706@gmail.com> <237967ef0811030938s2196041axd0aa4a051deddf69@mail.gmail.com> In-Reply-To: <237967ef0811030938s2196041axd0aa4a051deddf69@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/8559/Mon Nov 3 17:41:26 2008 on bifrost X-Virus-Status: Clean Mikael Magnusson wrote: > 2008/11/3 Matthieu Louvel de Monceaux : > >> Thank you for your nice piece of information. >> You want me to put those bindings in my zshrc file ? >> >> But i don't understand that : >> >> (($+terminfo[kdch1])) && >> >> You said that it maps delete-char to the char sent by the delete key. >> Is it the role of the '&&' ? >> > > a && b is like if a; then b; fi, but shorter, and only works if b is a > single statement (or is in {}, but then you're better off with an if > probably). > > Indeed that sounds logical. Same thing than if (($+terminfo[kdch1])); then bindkey -M viins $terminfo[kdch1] delete-char fi If I well understood. Anyway, I would like to know the reason of that vi-mode behavior, different from both vi editor and bash vi-mode behaviours ... maybe you could make me understand about that. M. Louvel de Monceaux