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

Re: Keyboard Macro?



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:070418195155.ZM32237@xxxxxxxxxxxxxxxxxxxxxx: 

> }   bindkey -s '^xC' 'cp _!\^ _!$'
> 
> or
>     bindkey -s 'cpfl' 'cp _!\^ _!$'
> 
> Gotta type it fast, though.
> 
> Why not e.g.
> 
>     cpfl() {
>       emulate -L zsh
>       local -a last
>       last=( ${(z)history[$[HISTCMD-1]]} )
>       cp -iv $last[2] $last[-1]
>     }
> 

thnx implemented Bart's script. the BindKeys didn't work for me, I think it's 
because I have vi edit mode enabled?!?


-- 
zzapper
http://www.rayninfo.co.uk/vimtips.html



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