zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk
Subject: Re: bindkey -v and alt-. for previous cmd arg
Date: Thu, 04 Nov 2004 12:16:02 +0000	[thread overview]
Message-ID: <19685.1099570562@csr.com> (raw)
In-Reply-To: <20041104114333.GC1476@tandv.ws>

Nick Croft wrote:
> I have since downgraded back to 4.0.4 but the original behaviour hasn't
> returned. I have copies of the original .zshrc, which works on other
> machines.

I can't see any evidence the binding was there in 4.0 (I'm actually
looking at the end of the 4.0 line, though I very much doubt a change
like this would have appeared in the middle).  The binding was there
in 3.0.  Are you sure it wasn't an even older zsh?

> It's all very strange, and to me buggy. I've noticed with some other
> software that 'progress' can mean the loss of the features I like best.

I tend to agree about this.  If I remember, there were some purist
mutterings a few years ago about vi insert mode and it was optimised for
"real vi users", so escape bindings were removed.  The main gain was
that there was no delay after typing Escape to leave insert mode (see
documentation of KEYTMOUT).  I doubt this was worth the annoyance caused.

This should put things back, I think.

bindkey -M viins "\M-^D" list-choices
bindkey -M viins "\M-^G" send-break
bindkey -M viins "\M-^H" backward-kill-word
bindkey -M viins "\M-^I" self-insert-unmeta
bindkey -M viins "\M-^J" self-insert-unmeta
bindkey -M viins "\M-^L" clear-screen
bindkey -M viins "\M-^M" self-insert-unmeta
bindkey -M viins "\M-^_" copy-prev-word
bindkey -M viins "\M- " expand-history
bindkey -M viins "\M-!" expand-history
bindkey -M viins "\M-\"" quote-region
bindkey -M viins "\M-$" spell-word
bindkey -M viins "\M-'" quote-line
bindkey -M viins "\M--" neg-argument
bindkey -M viins "\M-." insert-last-word
bindkey -M viins "\M-0" digit-argument
bindkey -M viins "\M-1" digit-argument
bindkey -M viins "\M-2" digit-argument
bindkey -M viins "\M-3" digit-argument
bindkey -M viins "\M-4" digit-argument
bindkey -M viins "\M-5" digit-argument
bindkey -M viins "\M-6" digit-argument
bindkey -M viins "\M-7" digit-argument
bindkey -M viins "\M-8" digit-argument
bindkey -M viins "\M-9" digit-argument
bindkey -M viins "\M-<" beginning-of-buffer-or-history
bindkey -M viins "\M->" end-of-buffer-or-history
bindkey -M viins "\M-?" which-command
bindkey -M viins "\M-A" accept-and-hold
bindkey -M viins "\M-B" backward-word
bindkey -M viins "\M-C" capitalize-word
bindkey -M viins "\M-D" kill-word
bindkey -M viins "\M-F" forward-word
bindkey -M viins "\M-G" get-line
bindkey -M viins "\M-H" run-help
bindkey -M viins "\M-L" down-case-word
bindkey -M viins "\M-N" history-search-forward
bindkey -M viins "\M-P" history-search-backward
bindkey -M viins "\M-Q" push-line
bindkey -M viins "\M-S" spell-word
bindkey -M viins "\M-T" transpose-words
bindkey -M viins "\M-U" up-case-word
bindkey -M viins "\M-W" copy-region-as-kill
bindkey -M viins "\M-_" insert-last-word
bindkey -M viins "\M-a" accept-and-hold
bindkey -M viins "\M-b" backward-word
bindkey -M viins "\M-c" capitalize-word
bindkey -M viins "\M-d" kill-word
bindkey -M viins "\M-f" forward-word
bindkey -M viins "\M-g" get-line
bindkey -M viins "\M-h" run-help
bindkey -M viins "\M-l" down-case-word
bindkey -M viins "\M-n" history-search-forward
bindkey -M viins "\M-p" history-search-backward
bindkey -M viins "\M-q" push-line
bindkey -M viins "\M-s" spell-word
bindkey -M viins "\M-t" transpose-words
bindkey -M viins "\M-u" up-case-word
bindkey -M viins "\M-w" copy-region-as-kill
bindkey -M viins "\M-x" execute-named-cmd
bindkey -M viins "\M-y" yank-pop
bindkey -M viins "\M-z" execute-last-named-cmd
bindkey -M viins "\M-|" vi-goto-column
bindkey -M viins "\M-^?" backward-kill-word
bindkey -M viins "^[^D" list-choices
bindkey -M viins "^[^G" send-break
bindkey -M viins "^[^H" backward-kill-word
bindkey -M viins "^[^I" self-insert-unmeta
bindkey -M viins "^[^J" self-insert-unmeta
bindkey -M viins "^[^L" clear-screen
bindkey -M viins "^[^M" self-insert-unmeta
bindkey -M viins "^[^_" copy-prev-word
bindkey -M viins "^[ " expand-history
bindkey -M viins "^[!" expand-history
bindkey -M viins "^[\"" quote-region
bindkey -M viins "^[$" spell-word
bindkey -M viins "^['" quote-line
bindkey -M viins "^[-" neg-argument
bindkey -M viins "^[." insert-last-word
bindkey -M viins "^[0" digit-argument
bindkey -M viins "^[1" digit-argument
bindkey -M viins "^[2" digit-argument
bindkey -M viins "^[3" digit-argument
bindkey -M viins "^[4" digit-argument
bindkey -M viins "^[5" digit-argument
bindkey -M viins "^[6" digit-argument
bindkey -M viins "^[7" digit-argument
bindkey -M viins "^[8" digit-argument
bindkey -M viins "^[9" digit-argument
bindkey -M viins "^[<" beginning-of-buffer-or-history
bindkey -M viins "^[>" end-of-buffer-or-history
bindkey -M viins "^[?" which-command
bindkey -M viins "^[A" accept-and-hold
bindkey -M viins "^[B" backward-word
bindkey -M viins "^[C" capitalize-word
bindkey -M viins "^[D" kill-word
bindkey -M viins "^[F" forward-word
bindkey -M viins "^[G" get-line
bindkey -M viins "^[H" run-help
bindkey -M viins "^[L" down-case-word
bindkey -M viins "^[N" history-search-forward
bindkey -M viins "^[P" history-search-backward
bindkey -M viins "^[Q" push-line
bindkey -M viins "^[S" spell-word
bindkey -M viins "^[T" transpose-words
bindkey -M viins "^[U" up-case-word
bindkey -M viins "^[W" copy-region-as-kill
bindkey -M viins "^[[A" up-line-or-history
bindkey -M viins "^[[B" down-line-or-history
bindkey -M viins "^[[C" forward-char
bindkey -M viins "^[[D" backward-char
bindkey -M viins "^[_" insert-last-word
bindkey -M viins "^[a" accept-and-hold
bindkey -M viins "^[b" backward-word
bindkey -M viins "^[c" capitalize-word
bindkey -M viins "^[d" kill-word
bindkey -M viins "^[f" forward-word
bindkey -M viins "^[g" get-line
bindkey -M viins "^[h" run-help
bindkey -M viins "^[l" down-case-word
bindkey -M viins "^[n" history-search-forward
bindkey -M viins "^[p" history-search-backward
bindkey -M viins "^[q" push-line-or-edit
bindkey -M viins "^[s" spell-word
bindkey -M viins "^[t" transpose-words
bindkey -M viins "^[u" up-case-word
bindkey -M viins "^[w" copy-region-as-kill
bindkey -M viins "^[x" execute-named-cmd
bindkey -M viins "^[y" yank-pop
bindkey -M viins "^[z" execute-last-named-cmd
bindkey -M viins "^[|" vi-goto-column
bindkey -M viins "^[^?" backward-kill-word

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


  parent reply	other threads:[~2004-11-04 12:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-03 12:48 Nick Croft
2004-11-03 13:53 ` DervishD
2004-11-03 19:44   ` Nick Croft
2004-11-03 19:57     ` DervishD
2004-11-03 20:01       ` DervishD
2004-11-04 11:43         ` Nick Croft
2004-11-04 12:03           ` DervishD
2004-11-04 12:16           ` Peter Stephenson [this message]
2004-11-04 14:20           ` Matthias B.
2004-11-04 14:33             ` Chris Johnson
2004-11-04 19:43               ` Nick Croft
2004-11-07 11:53             ` Nick Croft
2004-11-07 13:29               ` Matthias B.
2004-11-09 11:18                 ` Nick Croft

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=19685.1099570562@csr.com \
    --to=pws@csr.com \
    --cc=zsh-users@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).