Gabriel Fernández wrote:

>El Lun 06 Jun 2005 17:57, Pingveno escribió:
>  
>
>>In zsh, I'd like to use the "Home", "Delete" and "End" key to get to the
>>beginning of a line, do forward delete, and get to the end of the line.
>>However, I only see a "~" character entered. Any fix?
>>
>>--
>>Linux User #340304
>>    
>>
>you have to put something like that in your .zshrc
>
>#Rebind HOME and END to do the decent thing:
>bindkey '^[[H' beginning-of-line
>bindkey '^[[F' end-of-line
>case $TERM in (xterm*)
>bindkey '\eOH' beginning-of-line
>bindkey '\eOF' end-of-line
>esac
>
>#To discover what keycode is being sent, hit ^v
>#and then the key you want to test.
>
>#And DEL too, as well as PGDN and insert:
>bindkey '^[[3~' delete-char
>bindkey '^[[6~' end-of-history
>#bindkey '\e[2~' redisplay
>
>#Now bind pgup to paste the last word of the last command,
>bindkey '\e[5~' insert-last-word
>
>  
>
Thanks! It works perfectly.

-- 
Linux User #340304

-- 
gentoo-user@gentoo.org mailing list

Reply via email to