Re: zsh and keys setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 3, 2008 at 10:32 AM, Bruno Costacurta <pubmb.bco@xxxxx> wrote:
> Hello,
>
> how to setup keys under ZSH shell ?
>
> Default setup is not working (or at least seem totally not logical...)
> as 'Home' or 'End' do nothing, delete-char is deleting the left character
> where the right character is expected ..etc..
> I'm using Fedora-9

I don't know why your setup would be acting funny, but the details
about binding keys can be found in the zshzle man page.

I'm using cygwin at the moment (I know, I know) and had been meaning
to fix a few of its keys for a long time.  You motivated me to finally
do it!  I fired up vi on my .zshrc and added this line:

bindkey "^[[3~" delete-char

That worked for me.  After the first quote, I did control-v [delete
key].  If you cut and pasted that line from somewhere, you may not
have gotten the correct characters, so I'd suggest doing it like I
did.  For the home and end keys, I did something similar:

bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line

For me, for some strange reason, I was getting "^[OF" in vi.  So be
careful of that....

Anyway, hope that helps; there may be better ways to accomplish this.

reid

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux