zsh and keys setup

Bruno Costacurta pubmb.bco at pt.lu
Thu Jul 3 17:56:20 UTC 2008


On Thursday 03 July 2008 07:21:12 pm Reid Rivenburgh wrote:
> On Thu, Jul 3, 2008 at 10:32 AM, Bruno Costacurta <pubmb.bco at pt.lu> 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

Hi Reid,
does your 'bindkey "^[[3~" delete-char' delete character on right or left 
cursor position ?

Bye,
Bruno





More information about the fedora-list mailing list