zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: "A. Wik" <awik32@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Some zsh questions
Date: Tue, 08 Dec 2020 00:03:14 +0100	[thread overview]
Message-ID: <67828-1607382194.560022@L6HB.Gjwg.VlO1> (raw)
In-Reply-To: <CALPW7mQ_jTR4cOXRzngH2G+5REwcEUNnvPvmHF3U+bayvV9qag@mail.gmail.com>

On 1 Dec, "A. Wik" wrote:
> (1) when I use ^X^V to enter vi command mode, then go to insert mode,
> I can't get back to command mode using ESC, but using ^X^V again
> works.  It's in the keymap:
> % bindkey -M viins |grep -i cmd
> "^[" vi-cmd-mode
> Incidentally, for some reason ^X^V is not listed.

You're probably using emacs mode for the insert mode:
% bindkey -M emacs|grep -i cmd
"^X^V" vi-cmd-mode

Entering something like a or i from the vicmd keymap doesn't
specifically set the keymap to viins. You go back to whatever the main
keymap is aliased to. Run bindkey -lL to see.
If you want a hybrid of emacs and vi mode, you can always do:
  bindkey -M emacs '^[' vi-cmd-mode

> (3) Copying and pasting acts weird when I use zsh but not bash; eg:
> % echo $SHELL
> /bin/zsh
> % 0~echo $SHELL1~ 0~/bin/zsh1~

It looks like the bracketed paste sequences that the terminal generates
before and after pasted text are not being handled. These are handled as
a normal key binding:
  % bindkey -L|grep brack
  bindkey "^[[200~" bracketed-paste

Are you perhaps clearing all bindings or loading an alternative paste
plugin?

Oliver


      reply	other threads:[~2020-12-07 23:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 19:09 A. Wik
2020-12-07 23:03 ` Oliver Kiddle [this message]

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=67828-1607382194.560022@L6HB.Gjwg.VlO1 \
    --to=opk@zsh.org \
    --cc=awik32@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).