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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux