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

Re: bindings



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.



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