Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Weird Vi-mode behavior
- X-seq: zsh-workers 26000
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Matthieu Louvel de Monceaux" <glory69@xxxxxxxxx>
- Subject: Re: Weird Vi-mode behavior
- Date: Mon, 3 Nov 2008 18:50:44 +0100
- Cc: "Stephane Chazelas" <Stephane_Chazelas@xxxxxxxx>, zsh-workers@xxxxxxxxxx
- 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=
- In-reply-to: <490F38A8.2070505@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <490EED78.8010802@xxxxxxxxx> <200811031237.mA3Cb2VS013961@xxxxxxxxxxxxxx> <20081103125609.GA4855@xxxxxxxxxxxxxxx> <490F3638.4000706@xxxxxxxxx> <237967ef0811030938s2196041axd0aa4a051deddf69@xxxxxxxxxxxxxx> <490F38A8.2070505@xxxxxxxxx>
2008/11/3 Matthieu Louvel de Monceaux <glory69@xxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author