zsh-workers
 help / color / mirror / code / Atom feed
From: Matthieu Louvel de Monceaux <glory69@gmail.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>,  zsh-workers@sunsite.dk
Subject: Re: Weird Vi-mode behavior
Date: Mon, 03 Nov 2008 18:45:12 +0100	[thread overview]
Message-ID: <490F38A8.2070505@gmail.com> (raw)
In-Reply-To: <237967ef0811030938s2196041axd0aa4a051deddf69@mail.gmail.com>

Mikael Magnusson wrote:
> 2008/11/3 Matthieu Louvel de Monceaux <glory69@gmail.com>:
>   
>> 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


  reply	other threads:[~2008-11-03 17:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 12:24 Matthieu Louvel de Monceaux
2008-11-03 12:37 ` Peter Stephenson
2008-11-03 12:56   ` Stephane Chazelas
2008-11-03 17:34     ` Matthieu Louvel de Monceaux
2008-11-03 17:38       ` Mikael Magnusson
2008-11-03 17:45         ` Matthieu Louvel de Monceaux [this message]
2008-11-03 17:50           ` Mikael Magnusson
2008-11-03 17:55             ` Matthieu Louvel de Monceaux
2008-11-03 23:09               ` Matt Wozniski
2008-11-04  0:50                 ` Matthieu Louvel de Monceaux
2008-11-03 17:39       ` Peter Stephenson
2008-11-03 13:12   ` Matthieu Louvel de Monceaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=490F38A8.2070505@gmail.com \
    --to=glory69@gmail.com \
    --cc=Stephane_Chazelas@yahoo.fr \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).