Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: using vi-keys or cursor to go back a line?



Matthias Kopfermann wrote:

> hi list,
> 
> one thing that i seem to not get:
> how can i do something like the following:
> 
> /home/matthias% echo "
> this
> is
> just
> a 
> test  << at this point i want to go back and change
> this with that. but with k or cursor-back i get history,
> not line, so then i hit contrl-c and everything is fine,
> when i go back a line now. 
> i just thought , there might be a better way
> and i am nearly sure, i overlooked something,
> right?

Yep. Almost. You can bind push-line-or-edit to your key of choice and
then use that key to get the lines into one buffer where you can go up 
with the normal cursor movement keys.

There is no zle function that allows to go up to previous lines
directly while at the secondary prompt.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author