zsh-users
 help / color / mirror / code / Atom feed
* Re: vi-mode on linux?
@ 1999-07-15 14:27 Rand Bamberg
  1999-07-15 16:08 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Rand Bamberg @ 1999-07-15 14:27 UTC (permalink / raw)
  To: bruce; +Cc: zsh-users

Bruce Stephens <bruce@cenderis.demon.co.uk> wrote:
>> Putting "bindkey -v" in my .zshrc does correctly put me into
>> vi-mode.  A harmless-enough workaround -- although it still seems
>> like there's an obscure zsh/linux bug in there.
>
>See what RedHat's rpm installs.  It could be that there's something in
>the /etc/zlogin or /etc/zshrc files.

Ding ding ding!  That was it, exactly.  /etc/zshrc
turned out to be full of interesting things; 'bindkey -e'
was one of them.  Duh.  Shoulda looked first.

Thanks very much!
-Rand.

-- 
--------------------------------------------------------
Rand A. Bamberg                            rand@svri.com
                                      rand@qualityic.com


^ permalink raw reply	[flat|nested] 6+ messages in thread
* vi-mode on linux?
@ 1999-07-14 14:31 Rand Bamberg
  1999-07-14 18:15 ` dado
  0 siblings, 1 reply; 6+ messages in thread
From: Rand Bamberg @ 1999-07-14 14:31 UTC (permalink / raw)
  To: zsh-users

Hi all --

Has anyone else experienced problems getting vi-mode
to work automatically on Linux?  I've set both EDITOR and 
VISUAL to 'vi' and tried different combinations of Linux/zsh 
versions, with no success:  

  Linux 2.0.36   (RedHat 5.2) and zsh 3.1.5
  Linux 2.2.5-15 (RedHat 6.0) and zsh 3.0.5
  Linux 2.2.5-15 (RedHat 6.0) and zsh 3.1.5

I poked around and saw (via printf) that my env-settings
are being queried successfully and the "main" keymap
is indeed being set to vmap ("viins"), but somehow
it's getting overridden somewhere along the line.
Maybe it's a keycap/terminal issue, and the first time I
hit Esc I'm actually clobbering "viins" and entering
"emacs"?  ...but if I issue "bindkey -v" manually, 
everything works perfectly.

(Also, zsh/vi-mode works automatically on Solaris 5.5.1 
and Solaris 5.6 using zsh 3.1.5.)

Any ideas?

Thanks for your time,
Rand.

-- 
--------------------------------------------------------
Rand A. Bamberg                            rand@svri.com
                                      rand@qualityic.com


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

end of thread, other threads:[~1999-07-15 16:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-15 14:27 vi-mode on linux? Rand Bamberg
1999-07-15 16:08 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
1999-07-14 14:31 Rand Bamberg
1999-07-14 18:15 ` dado
1999-07-14 18:35   ` Rand Bamberg
1999-07-14 19:27     ` Bruce Stephens

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