[Top][All Lists]

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

Re: Mapping ctrl+arrow keys

From: Brian Kroth
Subject: Re: Mapping ctrl+arrow keys
Date: Mon, 4 Jan 2010 11:07:18 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

Alexander Sandler <address@hidden> 2009-12-30 16:05:
>    I checked if anyone had this problem before. I found one guy who
>    complained about similar problem, but for him ctrl+left/right worked in
>    terminal, but didn't work in emacs. Eventually he solved it by changing
>    TERM variable in emacs. Unfortunately this doesn't work for me and I am
>    completely lost. So, again, if anyone have an idea what might be the
>    problem, please drop a line.
>    Thanks.
>    Alex.
>    On Mon, Dec 28, 2009 at 9:48 AM, Alexander Sandler
>    <address@hidden> wrote:
>      I am working with zsh over putty. Normally, I have ctrl+left and
>      ctrl+right mapped to�^[OD and ^[OC. I bound them to�backward-word and
>      forward-word commands (which move cursor one word forward and one word
>      backward). This works wonderfully, but somehow stops working when I
>      start screen. From some reason, in screen both ctrl+left and left arrow
>      key are mapped to ^[[D. Ctrl+right and right arrow key mapped to�^[[C.
>      This is obviously wrong - it breaks the move word forward/move word
>      backward binding. I am wondering how to overcome this problem. Any
>      ideas?�Thanks.
>      Alex

For a similar problem in bash I just did this in my .inputrc:

# For urxvt->screen
"\eOc": forward-word
"\eOd": backward-word
"\eO5C": forward-word
"\eO5D": backward-word

Basically just add more bindings.  I did something similar in .vimrc as


reply via email to

[Prev in Thread] Current Thread [Next in Thread]