zsh-workers
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <vq@larryv.me>
To: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
Cc: zsh-workers@zsh.org
Subject: Re: emacs-forward-word not emacs-like
Date: Tue, 20 Oct 2020 23:35:06 -0400	[thread overview]
Message-ID: <54A17F86-83A8-4AF5-B684-F78F0D049E97@larryv.me> (raw)
In-Reply-To: <20201021032801.GA1808@gibby.ohnopub.net>

> On Oct 20, 2020, at 11:28 PM, Nathan Phillip Brink <ohnobinki@ohnopublishing.net> wrote:
> 
> If my cursor is positioned at ‘a’ and I press M-f, bash and Emacs
> will move the cursor to point to the first dash ‘-’ (dash) (i.e., to
> immediately after the ‘a’). zsh’s emacs-forward-word will instead
> position the cursor immediately after ‘c’. M-b mapped to
> emacs-backward-word and M-d mapped to kill-word suffer from the same
> issue where dashes and other punctuation(?) are incorrectly considered
> to be word characters.
> 
> Since I am so used to the behavior of Emacs and bash, this divergent
> behavior of zsh for these keys is really disruptive.
> 
> Is there a way to get Emacs/bash-style cursor movement for these
> bindings?

Take a look at the WORDCHARS shell variable and try removing any
characters that don't strike your fancy.

vq

  reply	other threads:[~2020-10-21  3:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21  3:28 Nathan Phillip Brink
2020-10-21  3:35 ` Lawrence Velázquez [this message]
2020-10-21 20:29 ` Bart Schaefer

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=54A17F86-83A8-4AF5-B684-F78F0D049E97@larryv.me \
    --to=vq@larryv.me \
    --cc=ohnobinki@ohnopublishing.net \
    --cc=zsh-workers@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).