* Configuring zsh to leave keys in command mode after a vi "/" search
@ 2002-05-04 5:26 Kingsley G. Morse Jr.
2002-05-04 20:34 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Kingsley G. Morse Jr. @ 2002-05-04 5:26 UTC (permalink / raw)
To: zsh-users
Hi everyone.
Does anyone happen to know how to configure zsh so the keyboard is left in
vi's *command mode* after finding the first matching command in zsh's
history with a "/" search?
FOR EXAMPLE ...
Say I want step through old "more" commands in zsh's history.
$ <esc>/more<cr>
?more_
$ more /etc/hosts
When I press "n" to find the next match ...
$ more /etc/hostsn
Oops! zsh was in vi's *insert* mode, interpreted the "n" literally and
appended it to the end of the command!
Is there a way to configure zsh so the "n" will be automatically
interpreted as the "next" command and retrieve the next matching "more"
command?
Thanks,
Kingsley
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuring zsh to leave keys in command mode after a vi "/" search
2002-05-04 5:26 Configuring zsh to leave keys in command mode after a vi "/" search Kingsley G. Morse Jr.
@ 2002-05-04 20:34 ` Bart Schaefer
2002-05-05 1:42 ` Kingsley G. Morse Jr.
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2002-05-04 20:34 UTC (permalink / raw)
To: Kingsley G. Morse Jr., zsh-users
On May 3, 10:26pm, Kingsley G. Morse Jr. wrote:
}
} $ <esc>/more<cr>
} ?more_
} $ more /etc/hosts
}
} When I press "n" to find the next match ...
}
} $ more /etc/hostsn
}
} Oops! zsh was in vi's *insert* mode, interpreted the "n" literally and
} appended it to the end of the command!
I'm not able to reproduce this at all. Zsh always stays in command mode
for me after ending a search. What version are you running, and what
options do you have set?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuring zsh to leave keys in command mode after a vi "/" search
2002-05-04 20:34 ` Bart Schaefer
@ 2002-05-05 1:42 ` Kingsley G. Morse Jr.
0 siblings, 0 replies; 3+ messages in thread
From: Kingsley G. Morse Jr. @ 2002-05-05 1:42 UTC (permalink / raw)
To: Bart Schaefer; +Cc: zsh-users
Bart,
Thanks for checking.
On Sat:20:34, Bart Schaefer wrote:
> On May 3, 10:26pm, Kingsley G. Morse Jr. wrote:
> }
> } $ <esc>/more<cr>
> } ?more_
> } $ more /etc/hosts
> }
> } When I press "n" to find the next match ...
> }
> } $ more /etc/hostsn
> }
> } Oops! zsh was in vi's *insert* mode, interpreted the "n" literally and
> } appended it to the end of the command!
>
> I'm not able to reproduce this at all. Zsh always stays in command mode
> for me after ending a search.
Interesting...
> What version are you running,
$ zsh --version
zsh 4.0.4 (i686-pc-linux-gnu)
> and what options do you have set?
$ setopt
autocd
noautoparamslash
autopushd
autoresume
nobgnice
cdablevars
noclobber
correct
correctall
extendedglob
globdots
histignoredups
interactive
longlistjobs
mailwarning
monitor
pushdminus
pushdsilent
pushdtohome
rcquotes
recexact
shinstdin
zle
Thanks,
Kingsley
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-05 1:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-04 5:26 Configuring zsh to leave keys in command mode after a vi "/" search Kingsley G. Morse Jr.
2002-05-04 20:34 ` Bart Schaefer
2002-05-05 1:42 ` Kingsley G. Morse Jr.
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).