Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Keyboard Macro?
- X-seq: zsh-users 11433
- From: fREW <frioux@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Keyboard Macro?
- Date: Thu, 19 Apr 2007 14:06:58 -0500
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=bXT/bw3dtvGtEhiK0UgcZFopdi0T2YubA455wrQO/eoJ+cmXlVPKbuXvKgs9VYSXDrwZ1X1taxjUyGv/V6YEcyyypBbxrJQL/rWcAo8SrzBIhk0sJrdeD6A1GP/+SzmUnkJvEUcEwLRUnUvVvL1PxOkyxrgBsB/75hJUHircqKs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=sj12W/DEFuwiuhCQPl1ZpvfEl5D6dQ+5TfZbcGyDubxzIfcl9sM8IJJeeylpntRDioiR1H5o5nL9CkVDdOXE0mGC7j1/oJ+keVO4Bv/gLPW6i0IGRoc3hzHEeBTpvBFCsarqY3dN5jYaGAvvmX69yEfY+ZwgzRIOBQydT4vQlM8=
- In-reply-to: <Xns9917B5B41DC5Ezzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9916D30A85EE9zzappergmailcom@xxxxxxxxxxx> <20070418202655.GF23011@xxxxxxxxxxxxxxx> <070418195155.ZM32237@xxxxxxxxxxxxxxxxxxxxxx> <Xns9917B5B41DC5Ezzappergmailcom@xxxxxxxxxxx>
You could have it in vi edit mode, just do:
bindkey -vs 'cpfl' 'cp _!\^ _!$'
This is one of the things I really dig about zsh: how we can rebind stuff. I have my zsh set up like my vim setup so that if I press jj it will go from insert mode to command mode.
The function is probably better though anyway.
-fREW
Messages sorted by:
Reverse Date,
Date,
Thread,
Author