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

Re: CLI Tricks



Hi,

zzapper wrote:
> On Fri, 12 Dec 2003 12:48:09 +0100, Dominik Vogt <dominik.vogt@xxxxxx>
> wrote:
> 
> >> > cp verylongfilename  verylongfilename
> >
> >You want the copy-prev-word function which is by default bound to
> >Esc Ctrl-_
> 
> Is it disabled if you use bindkey -v
> 
> Cos I cant get it to work

Sure. man zshzle and search for copy-prev-word - it says it's
unbound for vi insert or command modes :)

> EscControl_
> 
> It works with bindkey -e
> 
> But then on my keyboard me its EscCTRLShift_ which rather negates its
> usefulness!!!

bindkey -M viins '^O' copy-prev-word
And use ctrl-o afterwards. Or use another key which suits you
better.

Ciao,
Thomas

-- 
 Thomas Köhler       Email:       jean-luc@xxxxxxxxxxxxxxxxx
     <><             WWW:           http://jeanluc-picard.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

Attachment: signature.asc
Description: Digital signature



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