zsh-users
 help / color / mirror / code / Atom feed
* Completion style like Vim
@ 2010-11-16 19:57 Michael Treibton
  2010-11-16 20:09 ` Benjamin R. Haskell
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Treibton @ 2010-11-16 19:57 UTC (permalink / raw)
  To: zsh-users

Hi all,

I'm wondering how i can get vim-like completion with zsh, and even if
it's possible?

For those who don't know, vim allows completion to happen on one line,
so if I have entered the following commands:

foobar hello
bar baz hello
zsh is cool
zsh is really cool

... and I were to type in:

zsh is

and then press the up or down arrow keys, I would see as completion:

zsh is cool
zsh is really cool

which would be cycled through on the single line -- that is, without
presenting the completion menu.

Is something like this possible with zsh (and I assume zle?)  Note
that I already use the following bindings:

bindkey '\e[5~' beginning-of-buffer-or-history
bindkey '\e[6~' end-of-buffer-or-history
bindkey "^[n" history-search-forward
bindkey "^[p" history-search-backward

Which don't quite do what I want.

Is this possible at all?  I hope I've explained this well enough.

Thanks!

Michael


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

end of thread, other threads:[~2011-01-23  4:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-16 19:57 Completion style like Vim Michael Treibton
2010-11-16 20:09 ` Benjamin R. Haskell
     [not found]   ` <AANLkTimqY0yVW-uHNi_pKMYRjTZJ7a1CamENMs2CpCQs@mail.gmail.com>
     [not found]     ` <alpine.LNX.2.01.1011161606310.2792@hp>
2010-11-16 21:21       ` Benjamin R. Haskell
2010-11-17 22:43         ` Michael Treibton
2011-01-20 21:02           ` Michael Treibton
2011-01-20 22:02             ` Benjamin R. Haskell
2011-01-20 22:14               ` Michael Treibton
2011-01-23  4:56                 ` Bart Schaefer

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