* bindings
@ 1999-09-15 22:44 dado
1999-09-15 23:38 ` bindings Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: dado @ 1999-09-15 22:44 UTC (permalink / raw)
To: zsh users list
How can I bind certain keys to zle (I think) motion commands?
For instance, I want the END and HOME keys to move to the end and
beggining
of the command line, in either insert or command mode.
I use the vi mode.
I don't know if this information helps but here it goes.
I'm on a SGI O2, IRIX 6.5, with a Microsoft Natural keyboard.
Using xev, when I press the END key I get:
KeyPress event, serial 21, synthetic NO, window 0x3800001,
root 0x40, subw 0x0, time 1802884490, (173,180), root:(260,499),
state 0x0, keycode 109 (keysym 0xff57, End), same_screen YES,
XLookupString gives 0 characters: ""
I think my zshell is version 3.0.5
thanks.
--
____________________________________________________________________________
d a d o f e i g e n b l a t t direct (650) 846-8386
dado@pdi.com - Technical Lighter front desk (650) 846-8100
PDI - Palo Alto, CA fax (650) 846-8101
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bindings
1999-09-15 22:44 bindings dado
@ 1999-09-15 23:38 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-09-15 23:38 UTC (permalink / raw)
To: dado, zsh users list
On Sep 15, 3:44pm, dado wrote:
> Subject: bindings
> How can I bind certain keys to zle (I think) motion commands?
I recently wrote a lengthy message about this. See
http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=2550
> For instance, I want the END and HOME keys to move to the end and
> beggining of the command line, in either insert or command mode.
For insert mode, you want
bindkey -v ... beginning-of-line
bindkey -v ... end-of-line
and for command mode
bindkey -a ... beginning-of-line
bindkey -a ... end-of-line
replacing the "..." above with whatever your HOME and END keys send.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-09-15 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-15 22:44 bindings dado
1999-09-15 23:38 ` bindings 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).