zsh-users
 help / color / mirror / code / Atom feed
* Default setting of ZLE keymap
@ 2023-10-07 21:13 Bart Schaefer
  2023-10-08  2:46 ` Ray Andrews
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bart Schaefer @ 2023-10-07 21:13 UTC (permalink / raw)
  To: Zsh Users

For just about as long as zsh has existed, interactive shells at
startup have examined the environment variables $VISUAL and $EDITOR
for clues as to whether the default key bindings should be emacs-like
or vi-like.

Recently it was noticed that when one of these variables uses a full
path to name the editor program, the substring "vi" appearing anywhere
in that path (such as, in the name of the user's home directory) would
cause the vi-mode keymaps to be incorrectly enabled.

Two possible approaches have been suggested to address this:
(1) The whole scheme of using VISUAL / EDITOR to select zsh bindings
should be abandoned.  It's obsolete and no one uses those variables
for that purpose any longer.  Zsh should default to emacs behavior
unless an rc-file explicitly performs "bindkey -v".
(2) Continue to look at the two variables, but assure that "vi" has to
appear in the command name, that is, after the rightmost slash in any
path, or in the first word if there are no slashes.

Throwing the question out to a wider audience: If the zsh-users list
expresses no particular preference, or no need for #2, zsh-workers
will proceed with #1.

Discuss.  Thanks.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-11 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-07 21:13 Default setting of ZLE keymap Bart Schaefer
2023-10-08  2:46 ` Ray Andrews
2023-10-10 10:59 ` Eric Cook
2023-10-10 11:27 ` Peter Stephenson
2023-10-10 13:40   ` Re[2]: " Vadim Zeitlin
2023-10-10 19:53     ` Lawrence Velázquez
2023-10-11  0:34   ` Aaron Schrab

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).