From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6511 invoked from network); 3 Nov 2008 17:50:59 -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:50:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 36348 invoked from network); 3 Nov 2008 17:50:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Nov 2008 17:50:51 -0000 Received: (qmail 21844 invoked by alias); 3 Nov 2008 17:50:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26000 Received: (qmail 21828 invoked from network); 3 Nov 2008 17:50:47 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 3 Nov 2008 17:50:47 -0000 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by bifrost.dotsrc.org (Postfix) with ESMTP id A633280524C0 for ; Mon, 3 Nov 2008 18:50:44 +0100 (CET) Received: by ey-out-2122.google.com with SMTP id 25so867340eya.3 for ; Mon, 03 Nov 2008 09:50:44 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4d0j/Oi+xH7T71RMp52wJw8THefHFJQ85E8rDDDv/NY=; b=NY6NSDGaFjfZ5r3vASq27RA5QWU89dRruYI5N/+f46vPukv0LNSBxS78/QsUw9g1w3 AO8A2s57J3sroMvcx53T9SUj+IDDhjVUVviSJCNOUGSTzj4IOT7f8jpGKAg1SKn2SF1o ChQifUM16RTqW0mPxa7aHw3rFzwu1ICV74Ypo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=k0+TOzDm2ukMm84LcyG3mABM+dozXGo7qAe/patI6F0yLRM777Cl22weQ9MqlEn0a3 uYOykr0piHplCCLP1fOBhxN9YQt2SUIRZuXQ16GCvHrAnOW97xmOhR4lUFYBEZ36I4my Qtxjr3HmOjTjfZMoBOY+Hakpmduy5yNB848rY= Received: by 10.210.121.8 with SMTP id t8mr405377ebc.180.1225734644243; Mon, 03 Nov 2008 09:50:44 -0800 (PST) Received: by 10.210.73.14 with HTTP; Mon, 3 Nov 2008 09:50:44 -0800 (PST) Message-ID: <237967ef0811030950m1c0de776ye0ade92284eedc23@mail.gmail.com> Date: Mon, 3 Nov 2008 18:50:44 +0100 From: "Mikael Magnusson" To: "Matthieu Louvel de Monceaux" Subject: Re: Weird Vi-mode behavior Cc: "Stephane Chazelas" , zsh-workers@sunsite.dk In-Reply-To: <490F38A8.2070505@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <490EED78.8010802@gmail.com> <200811031237.mA3Cb2VS013961@news01.csr.com> <20081103125609.GA4855@sc.homeunix.net> <490F3638.4000706@gmail.com> <237967ef0811030938s2196041axd0aa4a051deddf69@mail.gmail.com> <490F38A8.2070505@gmail.com> X-Virus-Scanned: ClamAV 0.92.1/8559/Mon Nov 3 17:41:26 2008 on bifrost X-Virus-Status: Clean 2008/11/3 Matthieu Louvel de Monceaux : > Indeed that sounds logical. > Same thing than > > if (($+terminfo[kdch1])); then > bindkey -M viins $terminfo[kdch1] delete-char > fi > > If I well understood. yep. > 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. It is not different from the vi editor. If you have the string "Hello there" in vi, and the cursor is on the t in there and you enter insert mode, then you cannot backspace further left than that. Maybe you are used to vim where the default in many distros (probably) is to allow backspacing past this point. You can ":set compatible" to get the original vi behaviour. -- Mikael Magnusson